Files
dotfiles/dot_config/fish/config.fish
T

61 lines
2.4 KiB
Fish

# Config is split into autoloaded files (see `man fish` → Configuration files):
# conf.d/00-path.fish PATH entries
# conf.d/10-env.fish environment + fish_greeting + fzf theme
# conf.d/20-aliases.fish aliases
# conf.d/40-tools.fish starship / zoxide / mise / hishtory init
# conf.d/50-terminal-title.fish tmux window title
# conf.d/secrets.fish API keys (gitignored)
# functions/ one autoloaded function per file
# functions/fish_user_key_bindings.fish key bindings
#
# Nothing needs to live here; keep it empty so startup stays fast.
function starship_transient_prompt_func
starship module character
end
function starship_transient_rprompt_func
starship module time
end
starship init fish | source
enable_transience
# Pin the prompt to the bottom of the terminal (FISH_BOTTOM_PROMPT=1, the
# default from conf.d/10-env.fish; set 0 for the normal top prompt).
# functions/clear.fish and the ctrl-l binding re-pin it after clearing.
status is-interactive; and test "$FISH_BOTTOM_PROMPT" = 1; and tput cup $LINES 0
# >>> grok installer >>>
fish_add_path $HOME/.grok/bin
# <<< grok installer <<<
# Generated for envman. Do not edit.
test -s ~/.config/envman/load.fish; and source ~/.config/envman/load.fish
# cmux
fish_add_path "/home/prad/.cmux/bin"
fish_add_path "/home/prad/.cache/.bun/bin"
for _f in $HOME/.config/herdr/plugins/github/herdr-automatic-rename-*/shell/hook.fish
test -r "$_f"; and source "$_f"; and break
end
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv fish)"
# iris (~/.config/iris/config.toml). The init's first half `exec`s iris from an
# interactive fish, which then starts this config again inside its pty; the
# second half installs the cwd/command hooks there. Skipped where iris is not
# installed. `IRIS_RESCUE=1 fish` opens a plain fish (e.g. if iris breaks).
if command -q iris
# fish's `query-term` feature asks the terminal for its capabilities and,
# in kitty, turns on the kitty keyboard protocol (keys as CSI-u escapes).
# iris reads raw key bytes and cannot parse those, so its menu never
# opened in kitty. Feature flags are read at startup, so export the opt-out
# before `exec iris`: the fish iris starts inherits it.
if status is-interactive; and not set -q IRIS_PID; and not set -q IRIS_RESCUE
set -gx fish_features no-query-term
end
iris init fish | source
end