Skip to content

Commit 58ebd0f

Browse files
committed
remapped caps-lock to esc
1 parent c0d93b4 commit 58ebd0f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

xsettings/Xmodmap.symlink

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
!!No Caps Lock
2+
clear lock
3+
!! Make Caps_lock an escape key.
4+
keycode 0x42 = Escape

zsh/prompt.zsh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ virtualenv_prompt(){
6565
echo "%{$fg_bold[yellow]%}$(%M | awk '{print $1}')%{$reset_color%}"
6666
}
6767

68+
alias rvm-prompt="$HOME/.rvm/bin/rvm-prompt"
69+
70+
# basically, only show the rvm-prompt if it exists
71+
rvm_prompt () {
72+
if [[ -e `which rvm-prompt`]]; then
73+
echo "%{$fg_bold[yellow]%}$(rvm-prompt)%{reset_color%}"
74+
else
75+
echo ""
76+
fi
77+
}
78+
6879
precmd() {
6980
title "zsh" "%m" "%55<...<%~"
7081
set_prompt

0 commit comments

Comments
 (0)