Skip to content

Instantly share code, notes, and snippets.

@churcho
Forked from tikolakin/fish_alias.md
Created March 14, 2019 15:25
Show Gist options
  • Save churcho/93fc8a0005731dd6995f8be18325d2bf to your computer and use it in GitHub Desktop.
Save churcho/93fc8a0005731dd6995f8be18325d2bf 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