diff --git a/.config/shell/functions b/.config/shell/functions index 6a955a0..232d7b2 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -176,7 +176,7 @@ alias hx='sudo hexedit --maximize --color' # Paginated hexyl hex() { hexyl "$@" | "${PAGER:-less}" } -alias dict="rdictcc -d $XDG_DATA_HOME/dictcc" +alias dict="rlwrap rdictcc -d $XDG_DATA_HOME/dictcc" alias dictu="dict -i $XDG_DATA_HOME/dictcc/dict.txt" alias startMinecraftServer='curl https://ipinfo.io/ip | xclip -sel clip && cd ~/daten/games/sharedgames/minecraft/server && java -jar forge-1.12.2-14.23.5.2768-universal.jar -mx 8G' diff --git a/.local/bin/scripts/genssh b/.local/bin/scripts/genssh index 2bb1281..9ce1ca3 100755 --- a/.local/bin/scripts/genssh +++ b/.local/bin/scripts/genssh @@ -1,8 +1,8 @@ #!/bin/sh keys="$HOME/.ssh/keys" -name="${1:-id_rsa}" +name="${1:-id_ed25519}" mkdir -p "$keys" -test -f "$keys/$name.pub" || ssh-keygen -t rsa -b 4096 -f "$keys/$name" -q -N "" +test -f "$keys/$name.pub" || ssh-keygen -t ${2:-ed25519} -b 4096 -f "$keys/$name" -q -N "" cat "$keys/$name.pub" if test "$OSTYPE" = "cygwin" then cat "$keys/$name.pub">/dev/clipboard diff --git a/.local/bin/scripts/git-repo b/.local/bin/scripts/git-repo index 2aebf63..2512d2c 100755 --- a/.local/bin/scripts/git-repo +++ b/.local/bin/scripts/git-repo @@ -3,5 +3,5 @@ case "$1" in http*) echo "git@$(echo "$1" | cut -d'/' -f3):$(echo "$1" | cut -d'/' -f4)/$(echo "$1" | cut -d'/' -f5)" ;; git:*) echo "$1" ;; -*) echo "git@${1:-github.com}:${3:-$(git config user.name)}/${2:-$(basename $PWD)}.git" ;; +*) echo "${1:-git.jfischer.org}:${3:-$(git config user.name)}/${2:-$(basename $PWD)}.git" ;; esac diff --git a/.local/bin/scripts/help b/.local/bin/scripts/help index 1cb8edf..489625d 100755 --- a/.local/bin/scripts/help +++ b/.local/bin/scripts/help @@ -10,5 +10,5 @@ case $1 in (vlc) unbuffer vlc --full-help "${@:2}" | $paginate;; (gh|chordpro) $@ --help | $paginate;; (caddy) $1 help ${@:2} | $paginate;; - (*) info "$1" -w | grep -v "manpages" && pinfo "$@" || man "$@" || ( "$@" --help || "$@" -help ) 2>&1 | $paginate;; + (*) man "$@" || { info "$1" -w | grep -v "manpages" && pinfo "$@"; } || ( "$@" --help || "$@" -help ) 2>&1 | $paginate;; esac