rustc colored output?
[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 # -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
22 bind -x '"\C-xt":tmux'
23 bind -x '"\C-xu":uptime'
24 bind -x '"\C-xd":date'
25 bind -x '"\C-xc":cal'
26 bind -x '"\C-xi":my_ip'
27 bind -x '"\C-xg":glances'
28 bind -x '"\C-xp":emax /home/nsukami/Documents/post.org'
29
30 #
31 bind "TAB:complete"
32 bind '"\e[Z":menu-complete'
33
34 # alt-shift w
35 bind -x '"\ea":"git au"'
36 bind -x '"\es":"git stu"'
37 bind -x '"\ec":"git co"'
38 bind -x '"\ed":"git dc"'
39 bind -x '"\eq":exit'
40
41 # dabbrev expand
42 bind '"\e/":dabbrev-expand'