Files
dotfiles/fish/config.fish
2021-05-25 23:25:49 -07:00

45 lines
903 B
Fish

# ============
# Basics, etc…
# ============
# Default editor
set -g -x EDITOR "emacsclient"
set -g -x ALTERNATE_EDITOR "vim"
set -g -x TERMINAL "kitty"
# Setup PATH
ensure_path ~/.dotfiles/bin
ensure_path ~/.local/bin
ensure_path ~/bin
ensure_path ~/.emacs.d/bin
# Disable Fish greeting banner
set --universal fish_greeting
# Configuration for apps
for app in ~/.config/fish/apps/*.fish
source $app
end
# OS-specific configuration
source ~/.config/fish/os/os.fish
# Machine-local config
if test -e ~/.config/fish/local.fish
source ~/.config/fish/local.fish
end
# Hybrid Vi Mode
set -g fish_key_bindings hybrid_bindings
# Fix prompt for Emacs TRAMP
# https://github.com/oh-my-fish/theme-bobthefish/issues/148
if test "$TERM" = "dumb"
function fish_prompt
echo "\$ "
end
function fish_right_prompt; end
function fish_greeting; end
function fish_title; end
end