Skip to content

Commit

Permalink
Put fish before xonsh
Browse files Browse the repository at this point in the history
I suppose that fish is more well-known
  • Loading branch information
mgunyho committed Aug 4, 2022
1 parent b031bbe commit b98857e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ To start using `tere`, follow these steps:
}
```

For fish, put this in your `.config.fish`:
```sh
function tere
set --local result (command tere $argv)
[ -n "$result" ] && cd -- "$result"
end
```

For xonsh v0.10 or newer, put this in your `.xonshrc`:

```py
Expand All @@ -51,14 +59,6 @@ To start using `tere`, follow these steps:
aliases["tere"] = _tere
```
For fish, put this in your `.config.fish`:
```sh
function tere
set --local result (command tere $argv)
[ -n "$result" ] && cd -- "$result"
end
```
For powershell core, put this in your `$PROFILE`:
```sh
function Invoke-Tere() {
Expand Down

0 comments on commit b98857e

Please sign in to comment.