]> git.draconx.ca Git - zshconf.git/blob - zprofile
Configure terminal keybindings according to defined keymap.
[zshconf.git] / zprofile
1 # Load environment settings from profile.env, which is created by env-update
2 # from the files in /etc/env.d
3 if [[ -e /etc/profile.env ]]; then
4         source /etc/profile.env
5 fi
6
7 # Default path
8 path_front {,/usr,/usr/local}{/bin,/sbin} $HOME/bin
9
10 # Default user settings
11 export EDITOR=${EDITOR:-=vim}
12 export PAGER=${PAGER:-=less}
13 umask 022
14
15 shopts=$-
16 setopt nullglob
17
18 for sh in /etc/profile.d/*.sh ; do
19         if [[ -r $sh ]]; then
20                 source $sh
21         fi
22 done
23
24 unsetopt nullglob
25 set -$shopts
26 unset sh shopts
27
28 # Setup colours
29 eval `dircolors --sh /etc/DIR_COLORS`
30 if [[ -n "$LS_COLORS" && -z "$COLORTERM" ]]; then
31         export COLORTERM="ansi"
32 fi
33
34 # Configure terminal parameters
35 stty stop ''
36 case $KEYMAP in
37 colemak)
38         stty eof '^S'
39         ;;
40 esac