Skip to content

Instantly share code, notes, and snippets.

@ahmadalibaloch
Forked from tikolakin/fish_alias.md
Created February 18, 2023 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadalibaloch/eae09b271cb8e345dfe2ba2fc1cafb9b to your computer and use it in GitHub Desktop.
Save ahmadalibaloch/eae09b271cb8e345dfe2ba2fc1cafb9b 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