961d3bb1636744e07e5427c3fa2b7eaaa6d0e5bd
[dotfiles] / .bash_bind
1 #!/bin/sh
2
3 # you can also edit the ~/.inputrc file
4 # and add something like
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
16 bind -x '"\C-xt":tmux'
17 bind -x '"\C-xu":uptime'
18 bind -x '"\C-xd":date'
19 bind -x '"\C-xc":cal'
20 bind -x '"\C-xi":my_ip'
21 bind -x '"\C-xg":glances'
22 bind -x '"\C-xp":emax /home/nsukami/Documents/post.org'
23 bind -x '"\C-xq":exit'
24 bind -x '"\C-xr":". ~/.bashrc"'
25
26 #
27 bind "TAB:menu-complete"
28 #bind -"\C-TAB:complete"
29
30 # alt-shift w
31 bind -x '"\eW":"who"'
32 bind -x '"\eg":"git status"'
33
34 # dabbrev expand
35 # bind -x '"\e/":dabbrev-expand'