view dot_config/private_fish/config.fish @ 1041:979735a38885

feat: add keybind with fzf selector for revisions from current stack
author Zeger Van de Vannet <zeger@vandevan.net>
date Tue, 30 Apr 2024 22:34:09 +0200
parents 6ab26ddbf78d
children 3395b4109688
line wrap: on
line source

set -x EDITOR hx
set -x HGEDITOR hx

set -x RIPGREP_CONFIG_PATH $HOME/.config/ripgrep/ripgreprc
set -x BAT_CONFIG_PATH $HOME/.config/bat/config

set -x PS_FORMAT 'pid,pgid,state,start_time,%cpu,command'

set -x PATH $HOME/.local/bin $HOME/bin $PATH

if test -e "$HOME/bin/mise"
    $HOME/bin/mise activate fish | source
end

direnv hook fish | source

if status is-interactive
    # Commands to run in interactive sessions can go here

    # Select modified paths via fzf on alt+g
    bind \eg fzf_hg_status_files
    # Select output lines from last command
    bind \er fzf_last_command_output
    # Select revisions from the stack
    bind \ek fzf_hg_stack

    abbr hgst hg status
end