commit 26e180050907a3ba486baf2480048b9d03635330 parent 8c08f637da7f238c38126fa295eacf1c948a3fab Author: Dash Eclipse <dash@ezup.dev> Date: Sun, 4 Oct 2020 22:50:32 +0000 Update .zshrc.local Diffstat:
M | .zshrc.local | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/.zshrc.local b/.zshrc.local @@ -1,3 +1,18 @@ +# speedtest +speedtest-connection() { + time_seconds=$(curl -o/dev/null -sw '%{time_appconnect}' 'https://connectivitycheck.gstatic.com/generate_204') + printf "%.0fms\n" $((time_seconds * 1000)) +} + +# wordnet +wn() { while true; do dict -d wn $(read -e); done } + +# zsh-insulter +if [ -f /etc/zsh.command-not-found ]; then + . /etc/zsh.command-not-found +fi + +# Xorg x() { echo "which session?"; read && sx $HOME/.config/sx/sxrc $REPLY; } # memory usage