dotfiles/dot_config/fish/private_config.fish.tmpl

56 lines
1.7 KiB
Cheetah

{{- if (get . "brew") }}
{{- if eq .chezmoi.os "darwin" }}
{{- if (get . "sudo") }}
eval (/opt/homebrew/bin/brew shellenv)
{{- else }}
eval ($HOME/.local/homebrew/bin/brew shellenv)
{{- end }}
{{- end }}
{{- end }}
fish_add_path $HOME/.local/bin $HOME/.cargo/bin $HOME/go/bin
set -gx RUSTC_WRAPPER sccache
set -gx VIRTUAL_ENV_DISABLE_PROMPT 1
set -gx HOMEBREW_NO_ENV_HINTS 1
set -gx LANG en_US.UTF-8
set -gx GITLABBER_FOLDER_NAMING path
set -gx GITLABBER_CLONE_METHOD ssh
set -gx GITLABBER_GIT_CONCURRENCY 10
set -gx POETRY_PYPI_TOKEN_PYPI $PYPI_TOKEN
set -gx POETRY_HTTP_BASIC_PYPI_USERNAME $PYPI_USERNAME
set -gx POETRY_HTTP_BASIC_PYPI_PASSWORD $PYPI_TOKEN
set -gx ANSIBLE_NOCOWS 1
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
{{- if eq .chezmoi.os "darwin" }}
set -g fish_greeting "Wsh, bien ?"
{{- else }}
set -g fish_greeting "Wsh, bien ?"
{{- end }}
# Install python with pyenv with tcl/tk support
# https://stackoverflow.com/a/60469203/2758732
set -gx PYTHON_CONFIGURE_OPTS "--with-tcltk-includes='-I/usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'"
set -gx PIPX_DEFAULT_PYTHON "/Users/gaugendre/.local/share/mise/installs/python/3.12.3/bin/python3.12"
set -gx PIP_REQUIRE_VIRTUALENV true
set -gx MISE_PYTHON_VENV_AUTO_CREATE true
set -gx ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX YES
test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish
set -gx EDITOR nvim
set -gx DJANGOPROJECT_DATA_DIR $HOME/.djangoproject
type -q mise && mise activate fish | source
test -e {$HOME}/.config/fish/host.fish; and source {$HOME}/.config/fish/host.fish
test -e {$HOME}/.config/fish/secrets.fish; and source {$HOME}/.config/fish/secrets.fish
set tide_character_icon '$'