Last active
March 24, 2019 00:42
-
-
Save bkono/7f4a7c98a5cc39721df3dddc5025ed6a to your computer and use it in GitHub Desktop.
Initial setup for fish
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
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) |
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
bkono/fish-functions | |
fisherman/getopts | |
fisherman/gitignore | |
laughedelic/pisces | |
rafaelrinaldi/pure | |
fisherman/spin | |
jethrokuan/z |
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
#!/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." |
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
#!/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." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
3 steps.