From d5a141088341524b34cd1c43ea683f8d0c7c2fe4 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Thu, 4 Jun 2026 22:10:29 -0400 Subject: Migrate to fish --- .config/fish/conf.d/env.fish | 20 ++++++++++++++++++++ .config/fish/conf.d/fzf.fish | 3 +++ .config/fish/conf.d/git-prompt.fish | 3 +++ .config/fish/conf.d/go.fish | 5 +++++ .config/fish/conf.d/macos.fish | 17 +++++++++++++++++ .config/fish/conf.d/pyenv.fish | 8 ++++++++ 6 files changed, 56 insertions(+) create mode 100644 .config/fish/conf.d/env.fish create mode 100644 .config/fish/conf.d/fzf.fish create mode 100644 .config/fish/conf.d/git-prompt.fish create mode 100644 .config/fish/conf.d/go.fish create mode 100644 .config/fish/conf.d/macos.fish create mode 100644 .config/fish/conf.d/pyenv.fish (limited to '.config/fish/conf.d') diff --git a/.config/fish/conf.d/env.fish b/.config/fish/conf.d/env.fish new file mode 100644 index 0000000..4aacf61 --- /dev/null +++ b/.config/fish/conf.d/env.fish @@ -0,0 +1,20 @@ +set -gx TERM xterm-256color + +set -gx EDITOR nvim +set -gx PAGER less +set -gx MANPAGER less +set -gx MANWIDTH 80 + +set -gx GPG_TTY (tty) + +set -gx XDG_CONFIG_HOME $HOME/.config +set -gx XDG_DATA_HOME $HOME/.local/share +set -gx XDG_CACHE_HOME $HOME/.cache +set -gx XDG_STATE_HOME $HOME/.local/state + +set -gx SRC_DIR $HOME/src +set -gx BIN_DIR $HOME/bin + +fish_add_path \ + $BIN_DIR \ + $HOME/.local/bin diff --git a/.config/fish/conf.d/fzf.fish b/.config/fish/conf.d/fzf.fish new file mode 100644 index 0000000..d06005e --- /dev/null +++ b/.config/fish/conf.d/fzf.fish @@ -0,0 +1,3 @@ +if command -q fzf + fzf --fish | source +end diff --git a/.config/fish/conf.d/git-prompt.fish b/.config/fish/conf.d/git-prompt.fish new file mode 100644 index 0000000..91f1f97 --- /dev/null +++ b/.config/fish/conf.d/git-prompt.fish @@ -0,0 +1,3 @@ +set -g __fish_git_prompt_showdirtystate 1 +set -g __fish_git_prompt_showupstream auto +set -g __fish_git_prompt_showcolorhints 1 diff --git a/.config/fish/conf.d/go.fish b/.config/fish/conf.d/go.fish new file mode 100644 index 0000000..63924f8 --- /dev/null +++ b/.config/fish/conf.d/go.fish @@ -0,0 +1,5 @@ +set -gx GOPATH $SRC_DIR/go +set -gx GOBIN $GOPATH/bin +set -gx GOPROXY direct + +fish_add_path $GOBIN diff --git a/.config/fish/conf.d/macos.fish b/.config/fish/conf.d/macos.fish new file mode 100644 index 0000000..0df139e --- /dev/null +++ b/.config/fish/conf.d/macos.fish @@ -0,0 +1,17 @@ +if test (uname) = Darwin + fish_add_path \ + /opt/homebrew/bin/ \ + /opt/homebrew/opt/curl/bin \ + $HOME/.poetry/bin \ + $HOME/.local/bin \ + $HOME/Library/pnpm + + if command -q brew + brew shellenv | source + end + + set -gx LDFLAGS "-L/opt/homebrew/lib" + set -gx CPPFLAGS "-I/opt/homebrew/include" + set -gx LIBRARY_PATH "$LIBRARY_PATH:"(brew --prefix)"/lib" +end + diff --git a/.config/fish/conf.d/pyenv.fish b/.config/fish/conf.d/pyenv.fish new file mode 100644 index 0000000..2c45cb7 --- /dev/null +++ b/.config/fish/conf.d/pyenv.fish @@ -0,0 +1,8 @@ +if test -d ~/.pyenv + set -gx PYENV_ROOT ~/.pyenv + fish_add_path $PYENV_ROOT/bin + + if command -q pyenv + pyenv init - | source + end +end -- cgit v1.2.3