Skip to content

Instantly share code, notes, and snippets.

@tikolakin
Last active October 13, 2023 12:51
Show Gist options
  • Star 72 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
  • 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
@Omig12
Copy link

Omig12 commented Mar 16, 2018

Thanks! :) 👍

@esslamben
Copy link

Thanks!

@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-brha
Copy link

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