diff options
| author | Anton Bobov <abobov@gmail.com> | 2021-07-13 19:00:16 +0500 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2021-07-13 19:00:16 +0500 |
| commit | de6e4dc5f3bb31b6b9fd5e8bb7d3d0d6b75219d4 (patch) | |
| tree | caae2fb4c48ddae44927790bda3fba972b2facf0 /files/.zsh/rc/S50_functions | |
| parent | cf1c169bddffa22809e8a0359bb09344b2e3ee60 (diff) | |
zsh: aliases
Diffstat (limited to 'files/.zsh/rc/S50_functions')
| -rw-r--r-- | files/.zsh/rc/S50_functions | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/files/.zsh/rc/S50_functions b/files/.zsh/rc/S50_functions index cc7b912..eb183be 100644 --- a/files/.zsh/rc/S50_functions +++ b/files/.zsh/rc/S50_functions @@ -72,6 +72,15 @@ activate_virtualenv() { done } +edit-which() { + $EDITOR $(which "$@") +} +compdef edit-which=which + +ipinfo() { + curl ipinfo.io/json +} + transfer() { curl --progress-bar --upload-file "$1" https://transfer.sh/$(basename "$1") | tee /dev/null; echo |
