Skip to content

Instantly share code, notes, and snippets.

@wangshub
Forked from tikolakin/fish_alias.md
Created November 27, 2018 10:40
Show Gist options
  • Select an option

  • Save wangshub/f1b09244fbaa71e3b38b9e78bec4e13d to your computer and use it in GitHub Desktop.

Select an option

Save wangshub/f1b09244fbaa71e3b38b9e78bec4e13d 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