config: various shortcut updates

This commit is contained in:
xeruf 2022-01-30 12:33:09 +01:00
parent dcd3338a05
commit a13f3ce4e5
4 changed files with 5 additions and 3 deletions

View File

@ -180,9 +180,11 @@ alias dt='python -c "import time;print(time.asctime(time.localtime()))"'
# Process
alias println='printf "\n"'
alias myip="curl ifconfig.me && println && curl icanhazip.com"
alias dedup='awk '"'"'!a[$0]++'"'"
alias lar='last | tac'
alias lst='( last; last -f /var/log/wtmp.1 ) | grep -v "pts/" | tac | less +G'
alias hedgedoc="cd '$d4/dev/_forks/hedgedoc' && tmux new-session -d 'yarn run dev' && tmux split-window -h 'nodemon --watch app.js --watch lib --watch locales app.js' && tmux ls && firefox localhost:3000"
u() {
which pacman-mirrors >/dev/null &&

View File

@ -2,7 +2,7 @@
#assume_yes = true
# Disable specific steps - same options as the command line flag
disable = ["node", "pnpm", "nix", "emacs", "pacdiff"]
disable = ["node", "pnpm", "nix", "emacs", "config-update"]
# Ignore failures for these steps
#ignore_failures = ["powershell"]

View File

@ -158,7 +158,7 @@ if test "$bat" -o "$batplain" && ! $inspect; then
done;;
esac
else $batcommand "$pager" $batstyle,header$(test $# -gt 1 && echo ",numbers") "${bat[@]}"
fileinfo "${bat[@]}"
test $# -lt $(expr $(tput lines) / 3) && fileinfo "${bat[@]}"
fi
fi

View File

@ -13,4 +13,4 @@ cat "$keys/$name.pub"
if test "$OSTYPE" = "cygwin"
then cat "$keys/$name.pub">/dev/clipboard
else xclip -sel clip 2>/dev/null <"$keys/$name.pub"
fi && echo "SSH Public key copied to clipboard" || return 0
fi && echo "SSH Public key copied to clipboard" || true