Skip to content

Instantly share code, notes, and snippets.

Created July 30, 2010 09:30
Show Gist options
  • Save anonymous/500229 to your computer and use it in GitHub Desktop.
Save anonymous/500229 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ "$TERM" == "linux" ]; then
loadkeys /usr/lib/kbd/keymaps/i386/qwerty/jp106_Ctrl_CAPS.kmap.gz
else
exec setxkbmap -option ctrl:nocaps
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment