aboutsummaryrefslogtreecommitdiffstats
path: root/bash/.bashrc
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-07-23 06:41:53 +0000
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-07-23 06:41:53 +0000
commit2f2dbf5306f87c082620613d069a2068bf350ad3 (patch)
tree3f60ae395757f1cac43b64b076204446458aefa0 /bash/.bashrc
parent1d990fb0b3a3e579733a5c3fae0d69577b195c61 (diff)
downloaddotfiles-2f2dbf5306f87c082620613d069a2068bf350ad3.tar.gz
dotfiles-2f2dbf5306f87c082620613d069a2068bf350ad3.tar.bz2
dotfiles-2f2dbf5306f87c082620613d069a2068bf350ad3.zip
Added bash completion after sudo
Diffstat (limited to 'bash/.bashrc')
-rw-r--r--bash/.bashrc10
1 files changed, 7 insertions, 3 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 153f4e2..5e0625b 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -41,6 +41,10 @@ exists() {
41 hash $@ 2> /dev/null 41 hash $@ 2> /dev/null
42} 42}
43 43
44if exists complete && exists sudo; then
45 complete -cf sudo
46fi
47
44if exists mpv; then 48if exists mpv; then
45 alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream' 49 alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream'
46elif exists vlc; then 50elif exists vlc; then
@@ -71,13 +75,13 @@ if exists gem; then
71 export PATH="$PATH:$GEM_HOME" 75 export PATH="$PATH:$GEM_HOME"
72fi 76fi
73 77
74if exists ezjail-admin; then 78if exists ezjail-admin && exists sudo; then
75 jl() { 79 jl() {
76 sudo ezjail-admin $1 $2\.tomvanderlee.com 80 sudo ezjail-admin $1 $2\.tomvanderlee.com
77 } 81 }
78fi 82fi
79 83
80if exists pfctl; then 84if exists pfctl && exists sudo; then
81 showbanned () 85 showbanned ()
82 { 86 {
83 for table in "fail2ban" "permaban"; do 87 for table in "fail2ban" "permaban"; do
@@ -87,7 +91,7 @@ if exists pfctl; then
87 } 91 }
88fi 92fi
89 93
90if exists pacman && ! exists pacaur; then 94if (exists pacman && !exists pacaur) && exists sudo; then
91 alias pacaur="sudo pacman" 95 alias pacaur="sudo pacman"
92fi 96fi
93 97