diff --git a/zsh/files/aliases.zsh b/zsh/files/aliases.zsh index 03a174c..cdc31f1 100644 --- a/zsh/files/aliases.zsh +++ b/zsh/files/aliases.zsh @@ -6,6 +6,7 @@ alias mv='mv -i' alias psg='ps aux | grep -v grep | grep' alias duplHostKeys='cat $HOME/.ssh/known_hosts | cut -d" " -f3 | sort | uniq -d' +alias has="curl -sL https://git.io/_has | bash -s" alias sc-status="sudo systemctl status" alias sc-start="sudo systemctl start" diff --git a/zsh/rc.zsh b/zsh/rc.zsh index 2bb0fc5..4590a90 100644 --- a/zsh/rc.zsh +++ b/zsh/rc.zsh @@ -21,8 +21,11 @@ ZINIT[ZCOMPDUMP_PATH]="$HOME/.cache/zsh/compdump" source $HOME/.config/zinit/bin/zinit.zsh # Programs +zinit ice as"program" from"gh-r" mv"fd* -> fd" pick"fd/fd"; zinit light "sharkdp/fd" zinit ice as"program" from"gh-r" mv"bat* -> bat" pick"bat/bat"; zinit light "sharkdp/bat" zinit ice as"program" from"gh-r" mv"exa* -> exa"; zinit light "ogham/exa" +zinit ice as"program" from"gh-r" mv"ripgrep* -> ripgrep" pick"ripgrep/rg"; zinit light "BurntSushi/ripgrep" +zinit ice as"program" from"gh-r" mv"jq-* -> jq"; zinit light "stedolan/jq" # Completions and Autosuggestions zinit ice lucid blockf atpull'zinit creinstall -q .'; zinit light "zsh-users/zsh-completions" @@ -65,15 +68,15 @@ zinit ice lucid; zinit light "b4b4r07/enhancd" zinit ice lucid; zinit light "jreese/zsh-titles" zinit ice lucid; zinit light "urbainvaes/fzf-marks" zinit ice lucid; zinit light "Aloxaf/fzf-tab" +zinit ice lucid; zinit light "wfxr/forgit" +zinit ice lucid; zinit light "reegnz/jq-zsh-plugin" # syntax highlighting zinit ice lucid atinit"ZINIT[COMPINIT_OPTS]=-C; zpcompinit; zpcdreplay"; zinit light "zdharma/fast-syntax-highlighting" # Theme zinit ice depth=1; zinit light "romkatv/powerlevel10k" - -# To customize prompt, run `p10k configure` or edit ~/.config/dotfiles/zsh/.p10k.zsh. -[[ ! -f ~/.config/dotfiles/zsh/.p10k.zsh ]] || source ~/.config/dotfiles/zsh/.p10k.zsh +[[ ! -f "$ZDOTDIR/.p10k.zsh" ]] || source "$ZDOTDIR/.p10k.zsh" # p10k configure || nano ~/.config/dotfiles/zsh/.p10k.zsh # Local RC [[ -f "$ZDOTDIR/local/rc.zsh" ]] && source "$ZDOTDIR/local/rc.zsh"