Skip to content

Instantly share code, notes, and snippets.

@bashkid
Forked from tikolakin/fish_alias.md
Created August 31, 2017 04:18
Show Gist options
  • Save bashkid/62299594f752d6d60abcab9a7321f1df to your computer and use it in GitHub Desktop.
Save bashkid/62299594f752d6d60abcab9a7321f1df to your computer and use it in GitHub Desktop.
Create alias in Fish shell and save this as a permanent function

Directly from CLI

alias x='exit'
funcsave x

or create a file in

~/.config/fish/functions 

with name

homestead.fish

and put

function homestead
        set DIR $PWD
        cd ~/Homestead
        eval vagrant $argv
        cd $DIR
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment