Add Fish config with abbreviations

This commit is contained in:
Jonas Müller 2025-09-08 19:00:00 +00:00
parent 4d61713ff5
commit b311d2d827

27
fish/config.fish Normal file
View file

@ -0,0 +1,27 @@
# Fish shell config
# Environment
set -x EDITOR nvim
set -x VISUAL nvim
set -x PATH $HOME/.cargo/bin $HOME/.local/bin $PATH
set -x LANG de_DE.UTF-8
set -x TZ Europe/Berlin
# Forgejo CLI — token removed, use `forgejo-cli auth login` instead
# set -x FORGEJO_TOKEN (echo -n "j.mueller:Borussia09!" | base64)
# Abbreviations
abbr -a g git
abbr -a gc 'git commit'
abbr -a gca 'git commit --amend'
abbr -a gp 'git push'
abbr -a gpl 'git pull --rebase'
abbr -a gs 'git status'
abbr -a gd 'git diff'
abbr -a k kubectl
abbr -a kns 'kubectl config set-context --current --namespace'
abbr -a tf terraform
abbr -a dc 'docker compose'
# Prompt
starship init fish | source