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