dotfiles/dot_config/fish/conf.d/00-init.fish.tmpl

35 lines
761 B
Cheetah
Raw Normal View History

2024-04-14 18:41:15 -07:00
#!/usr/bin/env fish
# Base path.
set -Ux fish_user_paths "$HOME/.local/bin"
# Config files.
set -Ux XDG_CONFIG_HOME "$HOME/.config"
set -Ux XDG_CACHE_HOME "$HOME/.cache"
set -Ux XDG_DATA_HOME "$HOME/.local/share"
set -Ux XDG_STATE_HOME "$HOME/.local/state"
# Machine info.
set -gx OS "$(uname)"
if command -v hostnamectl &>/dev/null
set -gx HOST "$(hostnamectl --static)"
else if command -v scutil &>/dev/null # macOS
set -gx HOST "$(scutil --get ComputerName)"
end
# Projects dir.
set -gx HACK "$HOME/hackin"
# Editor.
set -gx EDITOR nvim
set -gx VISUAL "$EDITOR"
set -gx SUDO_EDITOR "$EDITOR"
{{ if eq .osid "linux-debian" }}
fish_add_path "/opt/nvim/linux64/bin"
{{ end }}
2024-04-14 18:41:15 -07:00
# Use vi key bindings.
set -g fish_key_bindings fish_vi_key_bindings