We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 534d477 commit c2aaba0Copy full SHA for c2aaba0
1 file changed
preferences/terminal.sh
@@ -20,3 +20,23 @@ defaults write com.googlecode.iterm2 PromptOnQuit -bool false
20
# Open File Manager To Directories (instead of jumping):
21
# jo music
22
brew install autojump
23
+
24
+# Define the required keybindings
25
+KEYBINDINGS='
26
+"\C-b": backward-word
27
+"\C-f": forward-word
28
+"\e\C-f": forward-word
29
+'
30
31
+# Check if ~/.inputrc exists
32
+if [ ! -f ~/.inputrc ]; then
33
+ echo "Creating ~/.inputrc"
34
+ touch ~/.inputrc
35
+fi
36
37
+# Append keybindings if they are not already present
38
+echo "$KEYBINDINGS" | while read -r line; do
39
+ if ! grep -Fxq "$line" ~/.inputrc; then
40
+ echo "$line" >> ~/.inputrc
41
+ fi
42
+done
0 commit comments