aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.bashrc7
-rw-r--r--des/i3/config3
2 files changed, 9 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
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