From 663c42957106cb2ba71075b4debdabe53b528559 Mon Sep 17 00:00:00 2001 From: benj Date: Tue, 14 Sep 2021 11:35:44 -0700 Subject: - function for random bytes since I seem to be doing that a lot... - fcitx-googlepinyin startup for i3 --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index d652ca9..e4702ae 100644 --- a/.bashrc +++ b/.bashrc @@ -24,6 +24,11 @@ function mkdirf () { mkdir -p $1 && cd $1 } +# get some random bytes +function random () { + head -c$1 /dev/urandom | tr -dc 'a-zA-Z0-9~!@#$%^&*(_-' +} + # Customize prompt if [ -n "$SSH_CLIENT" ]; then ssh_text="ssh" @@ -51,7 +56,7 @@ alias t='tmux' export ALTERNATE_EDITOR="" export EDITOR="vim" -export VISUAL=emacs +export VISUAL="vim" # NOTE: These env vars happen to be wanted. This also happens to fix a weird bug (just for reference): # This is a hack to avoid sbt/scala jline error introduced in the latest ncurses update -- cgit v1.2.3