diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-06-04 22:10:29 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-06-04 22:18:28 -0400 |
| commit | d5a141088341524b34cd1c43ea683f8d0c7c2fe4 (patch) | |
| tree | 896a9b146c51e28bbfc4e23449c1997b19c14b55 /.config/fish/config.fish | |
| parent | Remove custom vars file (diff) | |
| download | dotfiles-d5a141088341524b34cd1c43ea683f8d0c7c2fe4.zip | |
Migrate to fish
Diffstat (limited to '.config/fish/config.fish')
| -rw-r--r-- | .config/fish/config.fish | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..82fdbde --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,34 @@ +# Disable greeting +set -g fish_greeting + +abbr -a gs git status +abbr -a gc git commit +abbr -a ga git add +abbr -a gd git diff +abbr -a gds git diff --staged +abbr -a gp git push +abbr -a gpo git push origin +abbr -a gpl git pull +abbr -a gplrb git pull --rebase +abbr -a gl git log +abbr -a gv "git log --graph --decorate --oneline" +abbr -a gch git checkout +abbr -a gcb "git checkout -b" + +abbr -a l "ls -al" + +function auto_venv --on-variable PWD + if test -n "$VIRTUAL_ENV" + set parentdir (dirname "$VIRTUAL_ENV") + if not string match -q "$parentdir/*" "$PWD" + if functions -q deactivate + deactivate + end + end + end + if test -z "$VIRTUAL_ENV" + if test -f "$PWD/.venv/bin/activate.fish" + source "$PWD/.venv/bin/activate.fish" + end + end +end |