Files
dotfiles/machines/desktop/config/fish/config.fish

43 lines
654 B
Fish

if status is-interactive
zoxide init fish | source
set -U fish_greeting
set -gx EDITOR nvim
set -gx VISUAL nvim
set -gx PAGER less
set -gx LESS "-R --mouse -F -X"
abbr -a v 'nvim'
abbr -a vi 'nvim'
abbr -a ll 'ls -lah'
abbr -a la 'ls -A'
abbr -a .. 'cd ..'
abbr -a ... 'cd ../..'
abbr -a cp 'cp -i'
abbr -a mv 'mv -i'
abbr -a rm 'rm -i'
alias ai="aichat"
alias llm="aichat"
if type -q fzf
fzf --fish | source
end
if type -q starship
if test "$TERM" != linux
starship init fish | source
end
end
if test -z "$WAYLAND_DISPLAY"; and test (tty) = "/dev/tty1"
exec sway
end
end