diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-30 00:50:44 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-30 00:50:44 +0100 |
commit | 66794bebd2cb2bf251491570c92eef5a4eeff26e (patch) | |
tree | 31a87237bed72ca46afbe28e87c85661d28caa44 /config | |
parent | 15bc38edec39279f26969ca4b67126f6e544b831 (diff) | |
parent | 81b726707d458050682a779530247dd6a4ae1d16 (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'config')
-rw-r--r-- | config/essentials/shell/functions.sh | 16 | ||||
-rw-r--r-- | config/essentials/zsh/.zshrc | 1 |
2 files changed, 2 insertions, 15 deletions
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index ac51bd5..1aecccc 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -69,7 +69,7 @@ trcp() { scp "$1" db:/media/basilisk/downloads/transmission/torrents/; } rln() { ln -s "$(readlink -f "$1")" "$2"; } getgit() { git clone git@db:"$1"; } esc() { eval "$EDITOR '$(which $1)'"; } - +ssh_keyadd() { ssh-keygen -f "$HOME"/.ssh/"$1" -P "$(pass generate -f keys/"$HOST"/ssh/"$1" | tail -n 1)" -t ed25519; } delfile() { curl -s "${2:-https://upfast.cronyakatsuki.xyz/delete/$1}"; } upfile() { curl -s -F "file=@\"$1\"" "${2:-https://0x0.st}"; } to_webm() { ffmpeg -y -i "$1" -vcodec libvpx -cpu-used -12 -deadline realtime "${1%.*}".webm; } @@ -284,19 +284,6 @@ wgt() { doas wg-quick up "$d" } -# serve a file through dufs -serve() { - if [ "$1" ] - then - logn "Serving $1" - dufs "$1" - else - logn "Receiving files.." - dufs /tmp/data --alow-upload - fi -} - -ssh_keyadd() { ssh-keygen -f "$HOME"/.ssh/"$1" -P "$(pass generate -f keys/"$HOST"/ssh/"$1" | tail -n 1)" -t ed25519; } fchange() @@ -394,4 +381,3 @@ ssh() { done /usr/bin/ssh $@ } - diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 690c7e8..e474366 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -144,3 +144,4 @@ setopt notify # zprof +PATH="$PATH:$HOME/proj/chatty/" |