Update fzf location
[dotfiles] / .bash_bind
1 #!/bin/sh
2
3 # you can also edit the ~/.inputrc file
4 # and add something like (set bell-style none to disable beep)
5 #
6 # "\C-t": "top\n"
7 # or
8 # "\C-gu": "uptime\n"
9 # Not all bash line editing is controlled from ~/.inputrc; this is the reason of this file
10 #
11 # let's be creative :) we'll try to bind more useful command in the future
12
13 # read command is your friend
14 # make sure to replace ^[ by \e
15 # -x is for executing linux commands or aliases or functions
16 # without disturbing current cli
17
18 # reload bash: source bashrc and enter
19 # no need to execute, because of \n
20 # bind '"\e[15~":"source ~/.bashrc\n"'
21 # bind '"\C-xa":git au'
22 # bind '"\C-xc":git co'
23
24 if is_interactive_shell; then
25 # # fzf git branch name; use like this: git checkout ^g^b
26 # # bind '"\C-g\C-b": "$(git branch -a | cut -c 3- | fzf)\e\C-e"'
27 # bind -x '"\C-xt":tmux'
28 # bind -x '"\C-xu":uptime'
29 # bind -x '"\C-xd":date'
30 #
31 # #bind -x '"\C-xd":git diff'
32 # # bind -x '"\C-xs":git stu'
33 # # bind -x '"\C-xp":git push'
34 # # bind '"\C-xa":git au'
35 # # bind '"\C-xc":git co'
36 #
37 # bind -x '"\C-xi":my_ip'
38 # bind -x '"\C-xg":glances'
39 # bind -x '"\C-xm":m.mails'
40 #
41 # #
42 # bind "TAB:complete"
43 # bind '"\e[Z":menu-complete'
44 #
45 # # alt-shift w
46 # # bind -x '"\eA":"git au"'
47 # # bind -x '"\eS":"git stu"'
48 # # bind -x '"\eC":"git co"'
49 # # bind -x '"\eD":"git dc"'
50 # # bind -x '"\eq":exit' # useless Ctrl-d already exits
51 #
52 # # dabbrev expand
53 # bind '"\e/":dabbrev-expand'
54
55 fi