This commit is contained in:
Nikos Papadakis 2023-03-07 22:09:54 +02:00
parent a67d4e37c1
commit 2d69ae961a
Signed by untrusted user who does not match committer: nikos
GPG key ID: 78871F9905ADFF02
4 changed files with 7 additions and 11 deletions

View file

@ -1,3 +0,0 @@
if test (command -v doas)
abbr sudo doas
end

View file

@ -1,3 +0,0 @@
if test (command -v starship)
starship init fish | source
end

View file

@ -1,3 +0,0 @@
if test (command -v zoxide)
zoxide init fish | source
end

View file

@ -2,8 +2,8 @@ set -U fish_greeting
alias exa="exa --group-directories-first"
alias newkey="gpg-connect-agent \"scd serialno\" \"learn --force\" /bye"
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
[ "$TERM_PROGRAM" = "WezTerm" ] && alias ssh="wezterm ssh"
test "$TERM" = "xterm-kitty" && alias ssh="kitty +kitten ssh"
test "$TERM_PROGRAM" = "WezTerm" && alias ssh="wezterm ssh"
abbr vim nvim
abbr ls exa
abbr ll exa -lh
@ -13,6 +13,7 @@ abbr gc git commit
abbr gap git add -p
abbr gps git push
abbr gpl git pull
test doas && abbr sudo doas
# Keybinds
bind -k nul 'forward-char'
@ -21,3 +22,7 @@ bind -k nul 'forward-char'
set -x -g RUSTUP_HOME $XDG_DATA_HOME/rustup
set -x -g CARGO_HOME $XDG_DATA_HOME/cargo
set -x -g PATH $CARGO_HOME/bin $RUSTUP_HOME/bin $HOME/.local/bin $PATH
test fnm && fnm env | source
test starship && starship init fish | source
test zoxide && zoxide init fish | source