aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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