diff options
Diffstat (limited to 'fish')
| -rw-r--r-- | fish/.gitignore | 3 | ||||
| -rw-r--r-- | fish/config.fish | 50 | 
2 files changed, 53 insertions, 0 deletions
| diff --git a/fish/.gitignore b/fish/.gitignore new file mode 100644 index 0000000..847b95c --- /dev/null +++ b/fish/.gitignore @@ -0,0 +1,3 @@ +completions +functions +fish_variables diff --git a/fish/config.fish b/fish/config.fish new file mode 100644 index 0000000..82f9d8c --- /dev/null +++ b/fish/config.fish @@ -0,0 +1,50 @@ +# Remove fish greeting +set fish_greeting + +# Set terminal/visual editor to nvim +set EDITOR 'nvim' +set VISUAL 'nvim' + +fish_add_path ~/.cargo/bin +fish_add_path ~/.local/bin + +# This is used so the pgp keys on my Yubikey can be used for ssh etc +eval (ssh-agent -c) +gpg-agent --enable-ssh-support +set SSH_AUTH_SOCK (gpgconf --list-dirs agent-ssh-socket) +set GPG_TTY (tty) +export GPG_TTY=(tty) +gpg-connect-agent updatestartuptty /bye >/dev/null + +# Switch gpg to backup keys +# Main key +alias switchto1='gpg-connect-agent "20576321" "learn --force" /bye' +# Backup Key +alias switchto2='gpg-connect-agent "20576243" "learn --force" /bye' + +# exa > ls +alias ls='exa -al --group-directories-first --icons --color=always' + +alias battery='upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage' + +# attach to tmux session +alias attach='tmux -f ~/tmux.conf new-session -A -s terminal'  + +# hö +alias ed='nvim' + +# Colors +set fish_color_normal white +set fish_color_autosuggestion '#555555' +set fish_color_command white +set fish_color_error '#ff6c6b' +set fish_color_param '#777777' + + +# PATH +set PATH "$PATH:/home/max/.local/bin" + +clear  + +# Init starship +starship init fish | source   | 
