removed kdeconnect because of unnecesserity and added nix home configurations and added ohmyposh for the zsh

This commit is contained in:
Robin
2025-09-29 18:31:35 +02:00
parent f35e0bd637
commit db1a3e0b53
12 changed files with 259 additions and 67 deletions

65
.zshrc
View File

@@ -1,36 +1,38 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
if [ ! -d "$ZINIT_HOME" ]; then
mkdir -p "$(dirname $ZINIT_HOME)"
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
fi
source "${ZINIT_HOME}/zinit.zsh"
zinit ice depth=1; zinit light romkatv/powerlevel10k
# add in zsh plugins
zinit light zsh-users/zsh-syntax-highlighting
zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-autosuggestions
zinit light Aloxaf/fzf-tab
# Add in snippets
zinit snippet OMZL::git.zsh
zinit snippet OMZP::git
zinit snippet OMZP::sudo
zinit snippet OMZP::command-not-found
zinit snippet OMZP::ssh
zinit snippet OMZP::kitty
# Load completions
autoload -U compinit && compinit
autoload -Uz compinit && compinit -C
zinit cdreplay -q
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
bindkey -e
bindkey "${key[Up]}" history-search-backward
bindkey "${key[Down]}" history-search-forward
bindkey '^[[A' history-search-backward
bindkey '^[[B' history-search-forward
#History
HISTSIZE=10000
# History
HISTSIZE=5000
HISTFILE=~/.zsh_history
SAVEHIST=$HISTSIZE
HISTDUP=erase
@@ -42,19 +44,6 @@ setopt hist_save_no_dups
setopt hist_ignore_dups
setopt hist_find_no_dups
# Add in snippets
zinit snippet OMZL::git.zsh
zinit snippet OMZP::git
zinit snippet OMZP::sudo
zinit snippet OMZP::archlinux
zinit snippet OMZP::kubectl
zinit snippet OMZP::kubectx
zinit snippet OMZP::command-not-found
zinit snippet OMZP::ssh
zinit snippet OMZP::kitty
zinit snippet OMZP::tldr
zinit snippet OMZP::docker-compose
# Completion styling
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
@@ -62,26 +51,18 @@ zstyle ':completion:*' menu no
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
export EDITOR=nvim
# Aliase
alias vim="nvim"
alias cls="clear"
alias update="yay -Syu --noconfirm"
alias femboy="echo '$USER is a femboy'"
alias shut="shutdown now"
alias re="reboot"
alias dragon-drop="GDK_BACKEND=x11 dragon-drop"
alias ls="exa"
export EDITOR=nvim
alias switchhack="fusee-nano ~/Downloads/switchhack/hekate_ctcaer_6.3.0.bin"
alias moonpi='ssh 192.168.178.145 "SDL_AUDIODRIVER=alsa moonlight-qt stream -1080 -fps 60 --audio-on-host 192.168.178.25 "BigPicture""'
alias ssh_t='(){ ssh $1 -t tmux;}'
alias shutmoonpi='ssh 192.168.178.35 "moonlight-qt quit 192.168.178.25 "BigPicture"; killall moonlight-qt"'
alias sshserver="ssh -i ~/.ssh/GlaServer00 glala@81.21.121.109"
eval "$(fzf --zsh)"
eval "$(zoxide init --cmd cd zsh)"
## [Completion]
## Completion scripts setup. Remove the following line to uninstall
[[ -f /home/glala/.dart-cli-completion/zsh-config.zsh ]] && . /home/glala/.dart-cli-completion/zsh-config.zsh || true
## [/Completion]
eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/zen.toml)"