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 ## 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" ## the accepted values are identical to those of "filter_mode"
## leave unspecified to use same mode set in "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 ## 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" ## 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 ## use ctrl instead of alt as the shortcut modifier key for numerical UI shortcuts
## alt-0 .. alt-9 ## alt-0 .. alt-9
# ctrl_n_shortcuts = false ctrl_n_shortcuts = false
## default history list format - can also be specified with the --format arg ## default history list format - can also be specified with the --format arg
# history_format = "{time}\t{command}\t{duration}" # 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 # Set commands that should be totally stripped and ignored from stats
#common_prefix = ["sudo"] #common_prefix = ["sudo"]
[sync]
records = true

View File

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

View File

@ -18,3 +18,8 @@ gem install tmuxinator
## Lean version manager ## Lean version manager
#curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh #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 -sg escape-time 0
set -g default-terminal "tmux-256color" set -g default-terminal xterm-256color
set-window-option -g mode-keys vi set-window-option -g mode-keys vi