Bulk update of my dotfiles w/o really double checking
[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 bind -x '"\C-xt":tmux'
25 bind -x '"\C-xu":uptime'
26 bind -x '"\C-xd":date'
27
28 #bind -x '"\C-xd":git diff'
29 # bind -x '"\C-xs":git stu'
30 # bind -x '"\C-xp":git push'
31 # bind '"\C-xa":git au'
32 # bind '"\C-xc":git co'
33
34 bind -x '"\C-xi":my_ip'
35 bind -x '"\C-xg":glances'
36 #bind -x '"\C-xp":emax /home/nsukami/Documents/post.org'
37
38 #
39 bind "TAB:complete"
40 bind '"\e[Z":menu-complete'
41
42 # alt-shift w
43 # bind -x '"\eA":"git au"'
44 # bind -x '"\eS":"git stu"'
45 # bind -x '"\eC":"git co"'
46 # bind -x '"\eD":"git dc"'
47 bind -x '"\eq":exit'
48
49 # dabbrev expand
50 bind '"\e/":dabbrev-expand'