Skip to content

Instantly share code, notes, and snippets.

@bkono
Last active March 24, 2019 00:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkono/7f4a7c98a5cc39721df3dddc5025ed6a to your computer and use it in GitHub Desktop.
Save bkono/7f4a7c98a5cc39721df3dddc5025ed6a to your computer and use it in GitHub Desktop.
Initial setup for fish
if not functions -q fisher
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
fish -c fisher
end
set --export EDITOR nvim
set --export VISUAL nvim
# general exports & pathing
set -x GOPATH $HOME
set -U fish_user_paths $GOPATH/bin
# ssh agent
setenv SSH_ENV $HOME/.ssh/environment
__ssh_agent_init
# source abbrs
source $HOME/.config/fish/functions/*aliases.fish
# one-off abbrs
abbr e "$EDITOR"
abbr l 'ls -alh'
abbr md 'mkdir -p'
abbr irb "irb -r 'irb/completion'"
# setup direnv
eval (direnv hook fish)
bkono/fish-functions
fisherman/getopts
fisherman/gitignore
laughedelic/pisces
rafaelrinaldi/pure
fisherman/spin
jethrokuan/z
#!/usr/bin/env sh
brew install fish
echo /usr/local/bin/fish | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish
mkdir -p ~/.config/fish/
curl -Lo ~/.config/fish/config.fish https://gist.githubusercontent.com/bkono/7f4a7c98a5cc39721df3dddc5025ed6a/raw/aeaad9f0b6a0b6bbb462a66134437ee7be30ea9c/config.fish
# curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher
echo "Fish shell installed. Open a new shell and run the next script to complete the setup."
#!/usr/bin/env fish
fisher add bkono/fish-functions \
sijad/gitignore \
laughedelic/pisces \
rafaelrinaldi/pure \
jethrokuan/z
# curl -Lo ~/.config/fish/config.fish https://gist.githubusercontent.com/bkono/7f4a7c98a5cc39721df3dddc5025ed6a/raw/aeaad9f0b6a0b6bbb462a66134437ee7be30ea9c/config.fish
echo "Fin! Open up a fresh tab and get going."
@bkono
Copy link
Author

bkono commented Apr 11, 2018

3 steps.

  1. From in a zsh or bash shell, install fish and fisherman
curl -s https://gist.githubusercontent.com/bkono/7f4a7c98a5cc39721df3dddc5025ed6a/raw/bdadeb2d18432bcf1b1b4b65969c83471a961321/install.sh | bash
  1. Open a new terminal tab, which should now be a default fish install. run post-install.sh
curl -s https://gist.githubusercontent.com/bkono/7f4a7c98a5cc39721df3dddc5025ed6a/raw/a2e9fb6f63b05925f65e9f2b46d1432462cc77c6/post-install.sh | fish
  1. Open one more fresh tab, enter your ssh key password if asked. Fin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment