Skip to content

Instantly share code, notes, and snippets.

@marianozunino
Forked from tikolakin/fish_alias.md
Created May 28, 2018 14:01
Show Gist options
  • Select an option

  • Save marianozunino/d6d01ff31b82e7ee057eff6fcaff752c to your computer and use it in GitHub Desktop.

Select an option

Save marianozunino/d6d01ff31b82e7ee057eff6fcaff752c 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