1864

And another #bash #alias:

# Better word movement: treat aaa_bbb_ccc as ONE word
# Ctrl + Left  → move left by "word" (including underscores)
# Ctrl + Right → move right by "word" (including underscores)
if [[ $- == *i* ]]; then
  bind '"\e[1;5D": shell-backward-word'   # Ctrl + Left Arrow
  bind '"\e[1;5C": shell-forward-word'    # Ctrl + Right Arrow
fi

Comments (2)

  1. Lasha Kamadadze (Laboratory: Georgia IT student) ·
    What do you think of other shells like zsh, fish, other?
  2. Unknown author ·
    Did not try, looks like they have something good.

Reply on Telegram