summaryrefslogtreecommitdiffstats
path: root/.config/fish/conf.d
diff options
context:
space:
mode:
authorPavel Egorov <[email protected]>2025-05-21 17:59:51 +0300
committerPavel Egorov <[email protected]>2025-06-06 02:44:55 +0300
commit83f593715c3ea431bf7ad4a4ad0319ac68f2188e (patch)
treea60499e236127e295b0fd78538cf63696646f0af /.config/fish/conf.d
parente8d0ce64d3791ccb255b54e005190c17ba9cf99f (diff)
downloaddotfiles-83f593715c3ea431bf7ad4a4ad0319ac68f2188e.tar.gz
dotfiles-83f593715c3ea431bf7ad4a4ad0319ac68f2188e.zip
[fish] extract config.fish into separate files in conf.d
Diffstat (limited to '')
-rw-r--r--.config/fish/conf.d/abbr.fish15
-rw-r--r--.config/fish/conf.d/env.fish1
-rw-r--r--.config/fish/conf.d/js.fish1
-rw-r--r--.config/fish/conf.d/python.fish1
4 files changed, 18 insertions, 0 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
2abbr --add dotfiles "git --git-dir=\"$HOME/.config/dotfiles/\" --work-tree=\"$HOME\""
3
4# Git
5abbr --add gs "git status"
6abbr --add ga "git add"
7abbr --add gco "git checkout"
8
9# ls & alternatives
10abbr --add ls "eza -lAb --git --git-repos"
11
12# Added proxy flags
13set SSPROXY 'socks5://localhost:1080'
14abbr --add curlss "curl --proxy=$SSPROXY"
15abbr --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