diff --git a/.bashrc b/.bashrc index 2e06dfa..9e8dc14 100644 --- a/.bashrc +++ b/.bashrc @@ -13,7 +13,6 @@ export DOTFILES="$HOME/dot" export BLITZ="/run/media/oasido/blitz" export EXTERNAL="/run/media/oasido/External" - if [[ $- == *i* ]]; then bind '"\C-f":"tmux-sessionizer\n"' fi @@ -39,7 +38,7 @@ alias vim="nvim" alias c="clear" alias pn="pnpm" alias rm="trash" -alias sysupdate="sudo zypper ref && sudo zypper update" +alias sysupdate="sudo zypper ref && sudo zypper update && sudo zypper dup" alias lg="lazygit" alias flatls="flatpak list --app --columns=size,name|sort -g | grep MB" alias fpe="fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}' | xargs nvim" @@ -209,3 +208,7 @@ case ":$PATH:" in esac # pnpm end +# >>> b2v4 autocomplete >>> +# This section is managed by b2v4 . Manual edit may break automated updates. +source /home/oasido/.bash_completion.d/b2v4 +# <<< b2v4 autocomplete <<< diff --git a/.local/bin/scripts/tmux-session b/.local/bin/scripts/tmux-session index 9bb30f2..6979f70 100755 --- a/.local/bin/scripts/tmux-session +++ b/.local/bin/scripts/tmux-session @@ -9,7 +9,7 @@ dump() { } save() { - dump > ~/.tmux-session + dump >~/.tmux-session } terminal_size() { @@ -26,7 +26,7 @@ add_window() { new_session() { cd "$3" && - tmux new-session -d -s "$1" -n "$2" $4 + tmux new-session -d -s "$1" -n "$2" $4 } restore() { @@ -40,19 +40,20 @@ restore() { add_window "$session_name" "$window_name" "$dir" else new_session "$session_name" "$window_name" "$dir" "$dimensions" - count=$(( count + 1 )) + count=$((count + 1)) fi fi - done < ~/.tmux-session + done <~/.tmux-session echo "restored $count sessions" } case "$1" in -save | restore ) +save | restore) $1 ;; -* ) +*) echo "valid commands: save, restore" >&2 exit 1 + ;; esac