diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2023-10-06 23:04:14 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2023-10-06 23:04:14 +0200 |
| commit | d2d4140f74d74f5e43d8226c66ed2a57692fb365 (patch) | |
| tree | a497c803164ecaab9e99d4081cc18c44066e61c5 /config/fish | |
| parent | 40786e775c0d1540f88f8fab6af2a4b19a3e571e (diff) | |
| parent | 1d2e251d313a759246b95e6c4192e1e2c2f85bf4 (diff) | |
| download | dotfiles-d2d4140f74d74f5e43d8226c66ed2a57692fb365.tar.gz dotfiles-d2d4140f74d74f5e43d8226c66ed2a57692fb365.tar.bz2 dotfiles-d2d4140f74d74f5e43d8226c66ed2a57692fb365.zip | |
Merge branch 'master' of github.com:cacharle/dotfiles
Diffstat (limited to 'config/fish')
| -rw-r--r-- | config/fish/config.fish | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/config/fish/config.fish b/config/fish/config.fish index d84ee46..a58cb12 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -116,10 +116,14 @@ if status is-interactive alias arduino-cli='arduino-cli --config-file $XDG_CONFIG_HOME/arduino15/arduino-cli.yaml' # alias nvidia-settings --config="$XDG_CONFIG_HOME"/nvidia/settings - if [ "$(uname)" = 'Linux' ] - alias ls='ls --color=auto -Fh' + if command -qv eza + alias ls='eza --git --git-repos --mounts --classify --icons' else - alias ls='ls -G -Fh' + if [ "$(uname)" = 'Linux' ] + alias ls='ls --color=auto -Fh' + else + alias ls='ls -G -Fh' + end end abbr ll 'ls -l' abbr la 'ls -A' @@ -127,13 +131,23 @@ if status is-interactive abbr lss 'ls -Ssh' # tree - alias tree 'tree -FC' + if command -qv eza + alias tree='ls -T' + alias ti="ls -T --git-ignore" + else + alias tree 'tree -FC' + alias ti="tree --matchdirs -I __pycache__ -I node_modules -I '*.o' -I build" + end abbr t 'tree' abbr ta 'tree -a' abbr t1 'tree -L 1' abbr t2 'tree -L 2' abbr t3 'tree -L 3' - alias ti="tree --matchdirs -I __pycache__ -I node_modules -I '*.o' -I build" + + if command -qv bat + alias cat='bat --theme gruvbox-dark' + set -gx MANPAGER "sh -c 'col -bx | bat --theme gruvbox-dark -l man -p'" + end # git abbr ga 'git add' |
