change install stuff
This commit is contained in:
1
aliases
1
aliases
@@ -20,6 +20,7 @@ alias hora='date "+%H:%M:%S"'
|
|||||||
alias wthr='curl wttr.in/san_luis_obispo'
|
alias wthr='curl wttr.in/san_luis_obispo'
|
||||||
alias nf='cl; neofetch; shownetinfo && batt'
|
alias nf='cl; neofetch; shownetinfo && batt'
|
||||||
alias servers='python3 /Users/smparkin/Development/server_stats/servers.py'
|
alias servers='python3 /Users/smparkin/Development/server_stats/servers.py'
|
||||||
|
alias hekate='python3 /Users/smparkin/Development/fusee-launcher/fusee-launcher.py /Users/smparkin/Development/fusee-launcher/hekate/hekate.bin'
|
||||||
|
|
||||||
# School
|
# School
|
||||||
alias 305='cd /Users/smparkin/Library/Mobile\ Documents/com\~apple\~CloudDocs/CalPoly/2020-21/Spring21/CSC305'
|
alias 305='cd /Users/smparkin/Library/Mobile\ Documents/com\~apple\~CloudDocs/CalPoly/2020-21/Spring21/CSC305'
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ function shownetinfo() {
|
|||||||
ROUTR=$(system_profiler SPNetworkDataType | grep "Router:" | cut -c 19-30 | head -1)
|
ROUTR=$(system_profiler SPNetworkDataType | grep "Router:" | cut -c 19-30 | head -1)
|
||||||
LANIP=$(ifconfig | grep -v "127.0.0.1" | grep "inet " | head -1 | cut -d " " -f2)
|
LANIP=$(ifconfig | grep -v "127.0.0.1" | grep "inet " | head -1 | cut -d " " -f2)
|
||||||
if [ "$ROUTR" != "" ]; then
|
if [ "$ROUTR" != "" ]; then
|
||||||
WANIP=$(gtimeout 0.25s curl -s ipv4.icanhazip.com)
|
WANIP=$(gtimeout 0.25s curl -s icanhazip.com)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
tput setaf 7; tput bold; echo -en "Net: "
|
tput setaf 7; tput bold; echo -en "Net: "
|
||||||
|
|||||||
2
setup.sh
2
setup.sh
@@ -5,7 +5,7 @@ OSTYPE=$(uname -s)
|
|||||||
# get package manager up to date
|
# get package manager up to date
|
||||||
if [ "$OSTYPE" = "Linux" ]; then
|
if [ "$OSTYPE" = "Linux" ]; then
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install fortune cowsay lolcat zsh net-tools jq -y
|
sudo apt install coreutils zsh net-tools jq -y
|
||||||
sudo apt upgrade -y
|
sudo apt upgrade -y
|
||||||
elif [ "$OSTYPE" = "Darwin" ]; then
|
elif [ "$OSTYPE" = "Darwin" ]; then
|
||||||
echo "Install Homebrew? [y/n]"
|
echo "Install Homebrew? [y/n]"
|
||||||
|
|||||||
Reference in New Issue
Block a user