diff --git a/functions/@ b/functions/@ deleted file mode 100644 index 182f2e9..0000000 --- a/functions/@ +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/zsh -# for debugging: prefix any command with @ to print it before execution -function @() { - echo "$*"; "$@" -} diff --git a/functions/bookmarks b/functions/bookmarks deleted file mode 100755 index 6fe5dea..0000000 --- a/functions/bookmarks +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/zsh -function bookmarks() { - typeset -A bookmarks - while read k v; do bookmarks[$k]="$v"; done < ~/.bookmarks - target=$(printf "%s\n" ${(k)bookmarks} | fzf) - cd ${~bookmarks[$target]} -} - -function zle-bookmarks() { - bookmarks - zle reset-prompt -} -zle -N zle-bookmarks diff --git a/functions/imagepush b/functions/imagepush deleted file mode 100644 index eaf0025..0000000 --- a/functions/imagepush +++ /dev/null @@ -1,10 +0,0 @@ -autoload -U zfinit && zfinit -zmodload zsh/zftp - -imagepush() { - zfopen "crater2150.de" "ftp33701-crimages" \ - "$(gpg -d $HOME/.passwords/imagepush)" - zfcd / - zfput $* && echo "Transfer succesful" - zfclose -} diff --git a/functions/lesswrap b/functions/lesswrap deleted file mode 100644 index 20e18ec..0000000 --- a/functions/lesswrap +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/zsh - -lesswrap() { - cmd="$1" - alias $cmd="autoless command ${*}" -} - -autoless() { - out=$("$@") - ((lim=$LINES-1)) - numlines=$(echo $out | wc -l) - if (( $numlines > $lim )); then - echo $out | less - else - echo $out - fi - -} diff --git a/functions/parent-user b/functions/parent-user deleted file mode 100644 index 8973d97..0000000 --- a/functions/parent-user +++ /dev/null @@ -1,13 +0,0 @@ -function parent-user() { - pid=${1:-$$} - uid=${2:-$(piduser $pid)} - stat=($(