add more setup options
This commit is contained in:
3
aliases
3
aliases
@@ -1,6 +1,4 @@
|
||||
# Git
|
||||
alias ga='git add *'
|
||||
alias gc='git commit -m'
|
||||
alias gcl='git clone'
|
||||
alias gp='git push'
|
||||
alias gs='git status'
|
||||
@@ -16,7 +14,6 @@ alias tn="tmux new-session -s"
|
||||
alias gcc="gcc -g"
|
||||
alias wthr='curl wttr.in/san_luis_obispo'
|
||||
alias nf='cl; neofetch; shownetinfo && batt'
|
||||
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'
|
||||
alias src='omz reload'
|
||||
|
||||
|
||||
10
setup.sh
10
setup.sh
@@ -9,7 +9,7 @@ if [ "$OSTYPE" = "Linux" ]; then
|
||||
sudo apt install coreutils vim zsh jq python3 python3-pip -y
|
||||
sudo apt upgrade -y
|
||||
else
|
||||
# pretty safe assumption that if not ubuntu were on arch
|
||||
# pretty safe assumption that if not ubuntu its arch
|
||||
sudo pacman -Syu
|
||||
sudo pacman -Sy coreutils vim zsh jq python3
|
||||
fi
|
||||
@@ -18,12 +18,18 @@ elif [ "$OSTYPE" = "Darwin" ]; then
|
||||
read homebrew
|
||||
if [ "$homebrew" = "y" ]; then
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||
echo "Restore from Brewfile? [y/n]"
|
||||
read bundle
|
||||
if [ "$bundle" = "y" ]; then
|
||||
brew bundle install --file=Brewfile
|
||||
else
|
||||
brew install coreutils neofetch vim zsh jq python3
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# silence login message
|
||||
touch .hushlogin
|
||||
touch ~/.hushlogin
|
||||
|
||||
# get ohmyzsh setup
|
||||
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh/
|
||||
|
||||
6
zshrc
6
zshrc
@@ -37,15 +37,15 @@ if [ "$OSTYPE" = "Darwin" ]; then
|
||||
export EDITOR="/opt/homebrew/bin/vim"
|
||||
export PATH="/opt/homebrew/bin:$PATH"
|
||||
export PATH="/opt/homebrew/sbin:$PATH"
|
||||
export PATH="/Users/smparkin/Library/Python/3.9/bin:$PATH"
|
||||
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
|
||||
export PATH="/Users/smparkin/Library/Python/2.7/bin:$PATH"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
export EDITOR="/usr/local/bin/vim"
|
||||
export PATH="/usr/local/bin:$PATH"
|
||||
export PATH="/usr/local/sbin:$PATH"
|
||||
fi
|
||||
fi
|
||||
export PATH="/Users/smparkin/Library/Python/2.7/bin:$PATH"
|
||||
export PATH="/Users/smparkin/Library/Python/3.9/bin:$PATH"
|
||||
export PATH="/opt/devkitpro/pacman/bin:$PATH"
|
||||
export DEVKITPRO="/opt/devkitpro"
|
||||
export DEVKITARM="/opt/devkitpro/devkitARM"
|
||||
@@ -59,5 +59,7 @@ elif [ "$OSTYPE" = "Darwin" ]; then
|
||||
LAPTOP=$(system_profiler SPHardwareDataType | grep "Model Name" | grep "Book")
|
||||
if [ "$LAPTOP" != "" ]; then
|
||||
batt
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user