diff options
Diffstat (limited to 'fish/config.fish')
| -rw-r--r-- | fish/config.fish | 45 |
1 files changed, 14 insertions, 31 deletions
diff --git a/fish/config.fish b/fish/config.fish index c072cf0..ffe0f0f 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -1,12 +1,8 @@ -# ~/.config/fish/config.fish: DO NOT EDIT -- this file has been generated +# Login shell initialisation status is-login; and begin - - # Login shell initialisation - end status is-interactive; and begin - # Abbreviations abbr --add -- la 'eza -a' abbr --add -- ll 'eza -l' @@ -14,41 +10,28 @@ status is-interactive; and begin abbr --add -- ls eza abbr --add -- lt 'eza --tree' - # Aliases - alias eza 'eza --group-directories-first --header '\''--icons=always'\''' - # Interactive shell initialisation - fzf --fish | source - - set fish_greeting set hydro_color_pwd yellow set hydro_color_prompt green set hydro_color_git red set hydro_cmd_duration_threshold 30000 - any-nix-shell fish --info-right | source - fzf_configure_bindings --variables=\ev - zoxide init fish | source + set -gx GPG_TTY (tty) + gpg-connect-agent --quiet updatestartuptty /bye >/dev/null - if set -q KITTY_INSTALLATION_DIR - set --global KITTY_SHELL_INTEGRATION no-rc - source "$KITTY_INSTALLATION_DIR/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish" - set --prepend fish_complete_path "$KITTY_INSTALLATION_DIR/shell-integration/fish/vendor_completions.d" + if functions -q fzf_configure_bindings + fzf_configure_bindings --variables=\ev end - # add completions generated by Home Manager to $fish_complete_path - begin - set -l joined (string join " " $fish_complete_path) - set -l prev_joined (string replace --regex "[^\s]*generated_completions.*" "" $joined) - set -l post_joined (string replace $prev_joined "" $joined) - set -l prev (string split " " (string trim $prev_joined)) - set -l post (string split " " (string trim $post_joined)) - set fish_complete_path $prev "/home/mino/.local/share/fish/home-manager/generated_completions" $post + if command -q any-nix-shell + any-nix-shell fish --info-right | source + end + + if command -q zoxide + zoxide init fish | source end - set -gx GPG_TTY (tty) - gpg-connect-agent --quiet updatestartuptty /bye >/dev/null - - direnv hook fish | source - + if command -q direnv + direnv hook fish | source + end end |
