Skip to content

Commit

Permalink
Add fish shell aliasing example to the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
RCristiano committed Jan 14, 2022
1 parent 1908480 commit ebd0372
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@ alias pip='function _pip(){
};_pip'

```

For fish users, run on fish shell:

```sh
function pip
set command $argv[1]
set -e argv[1]
switch "$command"
case 'search'
pip_search $argv
case '*'
command pip "$command" $argv
end
end

funcsave pip
````

Then run with `pip search`

![https://raw.githubusercontent.com/kkatayama/pip_search/master/screenshot.png](https://raw.githubusercontent.com/kkatayama/pip_search/master/screenshot.png)
Expand Down

0 comments on commit ebd0372

Please sign in to comment.