bin: update some default values
This commit is contained in:
parent
d732f16ec9
commit
bab2d6effc
|
@ -176,7 +176,7 @@ alias hx='sudo hexedit --maximize --color'
|
||||||
# Paginated hexyl
|
# Paginated hexyl
|
||||||
hex() { hexyl "$@" | "${PAGER:-less}" }
|
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 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'
|
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'
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
keys="$HOME/.ssh/keys"
|
keys="$HOME/.ssh/keys"
|
||||||
name="${1:-id_rsa}"
|
name="${1:-id_ed25519}"
|
||||||
mkdir -p "$keys"
|
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"
|
cat "$keys/$name.pub"
|
||||||
if test "$OSTYPE" = "cygwin"
|
if test "$OSTYPE" = "cygwin"
|
||||||
then cat "$keys/$name.pub">/dev/clipboard
|
then cat "$keys/$name.pub">/dev/clipboard
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
case "$1" in
|
case "$1" in
|
||||||
http*) echo "git@$(echo "$1" | cut -d'/' -f3):$(echo "$1" | cut -d'/' -f4)/$(echo "$1" | cut -d'/' -f5)" ;;
|
http*) echo "git@$(echo "$1" | cut -d'/' -f3):$(echo "$1" | cut -d'/' -f4)/$(echo "$1" | cut -d'/' -f5)" ;;
|
||||||
git:*) echo "$1" ;;
|
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
|
esac
|
||||||
|
|
|
@ -10,5 +10,5 @@ case $1 in
|
||||||
(vlc) unbuffer vlc --full-help "${@:2}" | $paginate;;
|
(vlc) unbuffer vlc --full-help "${@:2}" | $paginate;;
|
||||||
(gh|chordpro) $@ --help | $paginate;;
|
(gh|chordpro) $@ --help | $paginate;;
|
||||||
(caddy) $1 help ${@:2} | $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
|
esac
|
||||||
|
|
Loading…
Reference in New Issue