diff options
| author | Pavel Egorov <[email protected]> | 2026-04-03 21:02:27 +0300 |
|---|---|---|
| committer | Pavel Egorov <[email protected]> | 2026-04-03 21:02:27 +0300 |
| commit | a84d0b914c204490cb5feeb9596dea21691ff045 (patch) | |
| tree | bbdb0c260d4c045c5bfc60187fe503b0e22d5109 /.config | |
| parent | 37aa47bf6751592da79753a6ff1aab17ef1c9fec (diff) | |
| download | dotfiles-a84d0b914c204490cb5feeb9596dea21691ff045.tar.gz dotfiles-a84d0b914c204490cb5feeb9596dea21691ff045.zip | |
[fish] added weather function
TODO: move into scripts
Diffstat (limited to '.config')
| -rw-r--r-- | .config/fish/conf.d/alias.fish | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/fish/conf.d/alias.fish b/.config/fish/conf.d/alias.fish index 01f3859..2057b0d 100644 --- a/.config/fish/conf.d/alias.fish +++ b/.config/fish/conf.d/alias.fish | |||
| @@ -27,3 +27,9 @@ function gitinit -a name | |||
| 27 | git init | 27 | git init |
| 28 | git commit -m "Initial commit" --allow-empty | 28 | git commit -m "Initial commit" --allow-empty |
| 29 | end | 29 | end |
| 30 | |||
| 31 | function weather -a location | ||
| 32 | set no_follow "F" | ||
| 33 | |||
| 34 | curl --get --data "$no_follow" "wttr.in/$location" | ||
| 35 | end | ||
