Skip to content

Instantly share code, notes, and snippets.

@esafirm
Last active March 31, 2017 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esafirm/59d7dfb34488d3c47037d7fed9bc2a5c to your computer and use it in GitHub Desktop.
Save esafirm/59d7dfb34488d3c47037d7fed9bc2a5c to your computer and use it in GitHub Desktop.
Terminal Setup
## In case it's still apt-get
echo 'alias apt="apt-get"' >> ~./bashrc
## Update APT
apt update
## Essentials
apt -y install htop xclip tmux unzip zsh git
## Change Shell Default to ZSH
chsh -s $(which zsh)
## Install Oh-My-ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/g' ~/.zshrc
## ZSH Syntax Highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
sed -i 's/plugins=(git)/plugins=(git zsh-syntax-highlighting)/g' ~/.zshrc
## Aliases
CONFIG_FILE=~/.zshrc
echo 'alias apt="apt-get"' >> $CONFIG_FILE
echo 'alias dush="du -sh"' >> $CONFIG_FILE
echo 'alias tb="nc termbin.com 9999"' >> $CONFIG_FILE
# Python & Friends
apt install python-pip python-dev build-essential
# to add add-apt-repository
apt install software-properties-common python-software-properties
# ccat
## Node
apt -y install npm
npm install -g n
n stable
## Reload
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment