Skip to content

Instantly share code, notes, and snippets.

@tikolakin
Last active October 3, 2024 14:06
Show Gist options
  • Save tikolakin/d59b4fc87c0af9720d0d to your computer and use it in GitHub Desktop.
Save tikolakin/d59b4fc87c0af9720d0d 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
@cbejensen
Copy link

Thanks!

@mattwr18
Copy link

mattwr18 commented Sep 3, 2019

this is great! thanks!!

@alfieqashwa
Copy link

alfieqashwa commented Sep 22, 2019

e.g:

alias co='git checkout'
funcsave co

then i can do:

git checkout master

with just:

co master

Thanks, man!!

@adriyanstanchev
Copy link

sweet!

@liam-bh
Copy link

liam-bh commented Apr 21, 2021

awesome thank you!

@sssjorsss
Copy link

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment