Last active
July 24, 2019 20:57
-
-
Save telnet2/0e4bda5826c30661a4186cf161588458 to your computer and use it in GitHub Desktop.
Setup frequently used linux tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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