From 4de10a89fa415012066ac334d6ebbb1b64e4d09b Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Mon, 13 Nov 2017 15:54:20 -0500 Subject: [PATCH] bashrc: Rename --- bash/{bashrc.wip => bashrc} | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) rename bash/{bashrc.wip => bashrc} (94%) diff --git a/bash/bashrc.wip b/bash/bashrc similarity index 94% rename from bash/bashrc.wip rename to bash/bashrc index dc60252..b66a0ec 100644 --- a/bash/bashrc.wip +++ b/bash/bashrc @@ -28,7 +28,12 @@ complete -F _ssh tssh #=============================================================================== #If redshift wasn't automatically started, this will do it function tint(){ - redshift -l 42.8864500:-78.8783700 -t 5000:4000 & + type redshift >/dev/null 2>&1 + if [[ $? == 0 ]]; then + redshift -l 42.8864500:-78.8783700 -t 5000:4000 & + else + echo "Redshift not installed" + fi } # Function for keeping ssh-agent happy function yssh(){ @@ -64,7 +69,7 @@ function sojourner_tmux(){ # Attack to the Sojourner session tmux attach -t Sojourner else - echo "Nope. No tmux. Install that sucka" + echo "Tmux not installed." fi } #===============================================================================