diff options
| -rw-r--r-- | .config/fish/conf.d/abbr.fish | 15 | ||||
| -rw-r--r-- | .config/fish/conf.d/env.fish | 1 | ||||
| -rw-r--r-- | .config/fish/conf.d/js.fish | 1 | ||||
| -rw-r--r-- | .config/fish/conf.d/python.fish | 1 | ||||
| -rw-r--r-- | .config/fish/config.fish | 7 |
5 files changed, 18 insertions, 7 deletions
diff --git a/.config/fish/conf.d/abbr.fish b/.config/fish/conf.d/abbr.fish new file mode 100644 index 0000000..55f0048 --- /dev/null +++ b/.config/fish/conf.d/abbr.fish | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # Dotfiles helper | ||
| 2 | abbr --add dotfiles "git --git-dir=\"$HOME/.config/dotfiles/\" --work-tree=\"$HOME\"" | ||
| 3 | |||
| 4 | # Git | ||
| 5 | abbr --add gs "git status" | ||
| 6 | abbr --add ga "git add" | ||
| 7 | abbr --add gco "git checkout" | ||
| 8 | |||
| 9 | # ls & alternatives | ||
| 10 | abbr --add ls "eza -lAb --git --git-repos" | ||
| 11 | |||
| 12 | # Added proxy flags | ||
| 13 | set SSPROXY 'socks5://localhost:1080' | ||
| 14 | abbr --add curlss "curl --proxy=$SSPROXY" | ||
| 15 | abbr --add ytdlpss "yt-dlp --proxy=$SSPROXY" | ||
diff --git a/.config/fish/conf.d/env.fish b/.config/fish/conf.d/env.fish new file mode 100644 index 0000000..86399b8 --- /dev/null +++ b/.config/fish/conf.d/env.fish | |||
| @@ -0,0 +1 @@ | |||
| set -x MANPAGER 'nvim +Man!' | |||
diff --git a/.config/fish/conf.d/js.fish b/.config/fish/conf.d/js.fish new file mode 100644 index 0000000..dab58c6 --- /dev/null +++ b/.config/fish/conf.d/js.fish | |||
| @@ -0,0 +1 @@ | |||
| fnm env --use-on-cd --shell fish | source | |||
diff --git a/.config/fish/conf.d/python.fish b/.config/fish/conf.d/python.fish new file mode 100644 index 0000000..54f931f --- /dev/null +++ b/.config/fish/conf.d/python.fish | |||
| @@ -0,0 +1 @@ | |||
| pyenv init - | source | |||
diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 6c72b28..e69de29 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | pyenv init - | source | ||
| 2 | if status is-interactive | ||
| 3 | abbr --add dotfiles git --git-dir="$HOME/.config/dotfiles/" --work-tree="$HOME" | ||
| 4 | abbr --add ls eza -lAb --git --git-repos | ||
| 5 | |||
| 6 | set -gx MANPAGER 'nvim +Man!' | ||
| 7 | end | ||
