Skip to content

Instantly share code, notes, and snippets.

@htsign
Last active December 4, 2019 07:45
Show Gist options
  • Save htsign/537e20890a37a0fc035047e1d5d626dc to your computer and use it in GitHub Desktop.
Save htsign/537e20890a37a0fc035047e1d5d626dc to your computer and use it in GitHub Desktop.
curl https://sh.rustup.rs -sSf | sh -s -- --profile default
set -U fish_user_paths ~/.cargo/bin $fish_user_paths
rustup completions fish > ~/.config/fish/completions/rustup.fish
cargo install ripgrep
cargo install bat
cargo install exa
cargo install fd
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt install golang-go
set -Ux GOPATH ~/go
set -U fish_user_paths $GOPATH/bin $fish_user_paths
go get -v github.com/junegunn/fzf
fisher add jethrokuan/fzf
set -U FZF_FIND_FILE_COMMAND "fd --type f --max-depth 5 . \$dir"
set -U FZF_CD_COMMAND "fd --type d --max-depth 5 . \$dir"
set -U FZF_CD_WITH_HIDDEN_COMMAND "fd --type d --hidden --exclude .git --max-depth 5 . \$dir"
set -U FZF_ENABLE_OPEN_PREVIEW 1
set -U FZF_PREVIEW_FILE_CMD "bat --color=always -n"
set -U FZF_PREVIEW_DIR_CMD "exa --color=always -l"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment