From ff529b4d1290ca82cf120b086658222b1fe2cd7e Mon Sep 17 00:00:00 2001 From: Nicole Tietz-Sokolskaya Date: Thu, 11 Apr 2024 22:06:36 -0400 Subject: [PATCH] Tweak atuin config (up -> per directory), setup ble.sh instead of bash-prexec, and fix passing through ctrl-num for atuin --- atuin/atuin/config.toml | 6 ++++-- bash/.bashrc | 2 +- fedora_bootstrap.sh | 5 +++++ tmux/.tmux.conf | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/atuin/atuin/config.toml b/atuin/atuin/config.toml index 090b479..b195ec3 100644 --- a/atuin/atuin/config.toml +++ b/atuin/atuin/config.toml @@ -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 diff --git a/bash/.bashrc b/bash/.bashrc index 80e20d7..dfd0bc1 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -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)" diff --git a/fedora_bootstrap.sh b/fedora_bootstrap.sh index 48407c9..dcae133 100644 --- a/fedora_bootstrap.sh +++ b/fedora_bootstrap.sh @@ -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 diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index ddac44b..17b64c3 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -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