···
-
{{ $brewPath := lookPath "brew" }}
-
set -x HOMEBREW_NO_INSTALL_CLEANUP 1
-
set -x HOMEBREW_NO_ANALYTICS 1
-
set -x HOMEBREW_NO_AUTO_UPDATE 1
-
set -x HOMEBREW_NO_INSTALL_CLEANUP 1
-
set -x HOMEBREW_NO_INSTALL_UPGRADE 1
-
set -x HOMEBREW_NO_UPDATE_REPORT_NEW 1
-
set -x HOMEBREW_NO_ENV_HINTS 1
-
eval ({{ $brewPath | quote }} shellenv)
-
# Add directories to path.
fish_add_path --global {{ joinPath .chezmoi.homeDir ".cargo/bin" | quote }}
fish_add_path --global {{ joinPath .chezmoi.homeDir ".local/bin" | quote }}
# Set XDG data directories.
set -x XDG_CACHE_HOME {{ joinPath .chezmoi.homeDir ".cache" | quote }}
set -x XDG_CONFIG_HOME {{ joinPath .chezmoi.homeDir ".config" | quote }}
set -x XDG_DATA_HOME {{ joinPath .chezmoi.homeDir ".local/share" | quote }}
set -x XDG_STATE_HOME {{ joinPath .chezmoi.homeDir ".local/state" | quote }}
-
{{ $editorName := .editor | default "vi" -}}
-
{{ $editorPath := lookPath $editorName -}}
-
set -x EDITOR {{ $editorPath | quote }}
-
{{ $batPath := lookPath "bat" }}
-
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
-
set -x BAT_PAGER "less -FIKMFRS"
-
# Set default less options.
-
set -x SYSTEMD_LESS FIKMRS
-
{{ $jjPath := lookPath "jj" }}
-
# Enable JJ completions.
-
COMPLETE=fish {{ $jjPath | quote }} | source
-
{{ $gioPath := lookPath "gio" }}
-
# Disable rm if the trash is enabled.
-
alias ts "{{ $gioPath }} trash"
-
echo "'rm' is disabled. use 'ts' to move items to trash, or 'command rm' to use rm."
if status --is-interactive
-
{{ $atuinPath := lookPath "atuin" }}
-
atuin init fish | source