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 ++++++- des/i3/config | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) 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 diff --git a/des/i3/config b/des/i3/config index eba6fe1..535abd5 100644 --- a/des/i3/config +++ b/des/i3/config @@ -10,6 +10,9 @@ set $mod Mod4 +# fcitx-googlepinyin +exec --no-startup-id fcitx -d + # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8 -- cgit v1.2.3