Skip to content

Instantly share code, notes, and snippets.

@bashkid
Forked from tikolakin/fish_alias.md
Created August 31, 2017 04:18
Show Gist options
  • Select an option

  • Save bashkid/62299594f752d6d60abcab9a7321f1df to your computer and use it in GitHub Desktop.

Select an option

Save bashkid/62299594f752d6d60abcab9a7321f1df to your computer and use it in GitHub Desktop.

Revisions

  1. @tikolakin tikolakin revised this gist Feb 21, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fish_alias.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Directly form CLI
    Directly from CLI
    ```
    alias x='exit'
    funcsave x
  2. @tikolakin tikolakin revised this gist Feb 21, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fish_alias.md
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ and put

    ```
    function homestead
    DIR=pwd
    set DIR $PWD
    cd ~/Homestead
    eval vagrant $argv
    cd $DIR
  3. @tikolakin tikolakin revised this gist Feb 21, 2016. 2 changed files with 23 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions fish_alias
    Original file line number Diff line number Diff line change
    @@ -1,2 +0,0 @@
    alias x='exit'
    funcsave x
    23 changes: 23 additions & 0 deletions fish_alias.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    # Directly form CLI
    ```
    alias x='exit'
    funcsave x
    ```
    or create a file in
    ```
    ~/.config/fish/functions
    ```
    with name
    ```
    homestead.fish
    ```
    and put

    ```
    function homestead
    DIR=pwd
    cd ~/Homestead
    eval vagrant $argv
    cd $DIR
    end
    ```
  4. @tikolakin tikolakin created this gist Feb 21, 2016.
    2 changes: 2 additions & 0 deletions fish_alias
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    alias x='exit'
    funcsave x