aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/rc/S50_functions
diff options
context:
space:
mode:
Diffstat (limited to 'files/.zsh/rc/S50_functions')
-rw-r--r--files/.zsh/rc/S50_functions9
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