I __ a word

This commit is contained in:
Brad Ganley 2019-03-16 21:49:08 -05:00
parent 45a06d4f52
commit 84a3080a18

View File

@ -24,7 +24,6 @@ alias supd='sudo pacman -Syyuu'
alias ncdu='ncdu --color dark'
alias bigclock='watch -t -n 1 "date '+%D%n%I:%M:%S' | figlet -k"|lolcat'
alias gitview='git log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"'
alias cheat='/usr/bin/cheat'
alias weather='curl wttr.in'
alias whatthecom='git commit -am "$(whatcom)"'
alias null='/dev/null'
@ -135,9 +134,33 @@ branchdelete(){
echo There you go;
}
cheat(){
curl "cheat.sh/$1"
}
updateconfigs (){
cd ~/GIT/configs
whatthecom
git push origin master
cd ~
}
needReboot(){
NEXTLINE=0
FIND=""
for I in `file /boot/vmlinuz*`; do
if [ ${NEXTLINE} -eq 1 ]; then
FIND="${I}"
echo -e "\n\nCurrent kernel version is $FIND\n\n"
NEXTLINE=0
else
if [ "${I}" = "version" ]; then NEXTLINE=1; fi
fi
done
if [ ! "${FIND}" = "" ]; then
CURRENT_KERNEL=`uname -r`
if [ ! "${CURRENT_KERNEL}" = "${FIND}" ]; then
echo -e "Booted kernel version is $CURRENT_KERNEL.\n\nReboot required"
fi
fi
}