Skip to content

Instantly share code, notes, and snippets.

@telnet2
Last active July 24, 2019 20:57
Show Gist options
  • Save telnet2/0e4bda5826c30661a4186cf161588458 to your computer and use it in GitHub Desktop.
Save telnet2/0e4bda5826c30661a4186cf161588458 to your computer and use it in GitHub Desktop.
Setup frequently used linux tools
# sudo apt-get -y install build-essential vim silversearcher-ag zsh httpie
sudo add-apt-repository ppa:aacebedo/fasd && sudo apt-get update
sudo apt-get install -y httpie silversearcher-ag fasd
if [[ ! -d ~/.fzf ]]; then
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
fi
if [[ ! -d ~/.nvm ]]; then
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
fi
if ! grep -q fasd ~/.bashrc; then
cat <<'EOF' >> ~/.bashrc
fasd_cache="$HOME/.fasd-init-bash"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init posix-alias bash-hook bash-ccomp bash-ccomp-install >| "$fasd_cache"
fi
source "$fasd_cache"
unset fasd_cache
EOF
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment