aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2021-09-14 11:35:44 -0700
committerbenj <benj@rse8.com>2021-09-14 11:35:44 -0700
commit663c42957106cb2ba71075b4debdabe53b528559 (patch)
treedb70700f630de7668394f836dc47f97061d1d25b /.bashrc
parentf18df7f9ccbe619ff42a6511c05099df4225b450 (diff)
downloadsetup-663c42957106cb2ba71075b4debdabe53b528559.tar
setup-663c42957106cb2ba71075b4debdabe53b528559.tar.gz
setup-663c42957106cb2ba71075b4debdabe53b528559.tar.bz2
setup-663c42957106cb2ba71075b4debdabe53b528559.tar.lz
setup-663c42957106cb2ba71075b4debdabe53b528559.tar.xz
setup-663c42957106cb2ba71075b4debdabe53b528559.tar.zst
setup-663c42957106cb2ba71075b4debdabe53b528559.zip
- function for random bytes since I seem to be doing that a lot...
- fcitx-googlepinyin startup for i3
Diffstat (limited to '')
-rw-r--r--.bashrc7
1 files changed, 6 insertions, 1 deletions
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