Tweak atuin config (up -> per directory), setup ble.sh instead of bash-prexec, and fix passing through ctrl-num for atuin

This commit is contained in:
Nicole Tietz-Sokolskaya 2024-04-11 22:06:36 -04:00
parent ee6ee8f214
commit ff529b4d12
4 changed files with 11 additions and 4 deletions

View file

@ -51,7 +51,7 @@
## which filter mode to use when atuin is invoked from a shell up-key binding
## the accepted values are identical to those of "filter_mode"
## leave unspecified to use same mode set in "filter_mode"
filter_mode_shell_up_key_binding = "session"
filter_mode_shell_up_key_binding = "directory"
## which search mode to use when atuin is invoked from a shell up-key binding
## the accepted values are identical to those of "search_mode"
@ -88,7 +88,7 @@ filter_mode_shell_up_key_binding = "session"
## use ctrl instead of alt as the shortcut modifier key for numerical UI shortcuts
## alt-0 .. alt-9
# ctrl_n_shortcuts = false
ctrl_n_shortcuts = false
## default history list format - can also be specified with the --format arg
# history_format = "{time}\t{command}\t{duration}"
@ -172,3 +172,5 @@ enter_accept = true
#
# Set commands that should be totally stripped and ignored from stats
#common_prefix = ["sudo"]
[sync]
records = true

View file

@ -93,5 +93,5 @@ if [ -d "$HOME/.fly" ] ; then
PATH="$FLYCTL_INSTALL/bin:$PATH"
fi
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
source ~/.local/share/blesh/ble.sh
eval "$(atuin init bash)"

View file

@ -18,3 +18,8 @@ gem install tmuxinator
## Lean version manager
#curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh
# ble.sh
curl -L https://github.com/akinomyoga/ble.sh/releases/download/nightly/ble-nightly.tar.xz | tar xJf -
bash ble-nightly/ble.sh --install ~/.local/share
echo 'source ~/.local/share/blesh/ble.sh' >> ~/.bashrc

View file

@ -3,7 +3,7 @@ bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
set -sg escape-time 0
set -g default-terminal "tmux-256color"
set -g default-terminal xterm-256color
set-window-option -g mode-keys vi