diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-08-22 15:41:40 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-08-22 15:49:32 -0500 |
commit | 4261b2b830cfca61524d84a444f4f072bcd63f92 (patch) | |
tree | e2701280aa26e7fb7b4187cb780a3c5a2653ad39 /zsh/.config | |
parent | 2ca953cead8786a801c21805dcb0e7496069f887 (diff) |
feat(zsh): add lsd
Diffstat (limited to 'zsh/.config')
-rw-r--r-- | zsh/.config/zsh/.zshrc | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 5628c0d..32cc41b 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -21,12 +21,7 @@ setopt share_history # share command history data zstyle ':completion:*' cache-path $XDG_CACHE_HOME/zsh/zcompcache -alias ls='ls --color=tty' -alias l='ls -lah' -alias la='ls -lAh' -alias ll='ls -lh' -alias lla='ls -lA' -alias lsa='ls -lah' +alias ls="$(command -v lsd || echo ls --color=tty)" alias grep='grep --color' alias ipa="ip -s -c -h a" alias untar="tar -zxvf" @@ -64,13 +59,13 @@ export ZSH_AUTOSUGGEST_STRATEGY=(match_prev_cmd completion) # https://github.com/zsh-users/zsh-autosuggestions#suggestion-highlight-style export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#4f4738" -command -v fd &>/dev/null && _fzf_compgen_path() { +command -v fd >/dev/null 2&>1 && _fzf_compgen_path() { fd --hidden --follow --exclude ".git" . "$1" } -command -v fd &>/dev/null && _fzf_compgen_dir() { +command -v fd >/dev/null 2&>1 && _fzf_compgen_dir() { fd --type d --hidden --follow --exclude ".git" . "$1" } -command -v starship &>/dev/null && source <(starship init zsh) -command -v sheldon &>/dev/null && source <(sheldon source) +command -v starship >/dev/null 2&>1 && source <(starship init zsh) +command -v sheldon >/dev/null 2&>1 && source <(sheldon source) |