comparison .zshrc @ 39:62bfb554ab85

Reorganize zsh files so that bash can work as well.
author Augie Fackler <durin42@gmail.com>
date Mon, 26 Jan 2009 13:21:00 -0600
parents c30d68fbd368
children c65cc71d7ba1
comparison
equal deleted inserted replaced
38:f70862dadf83 39:62bfb554ab85
1 # Augie Fackler's zshrc file 1 # Augie Fackler's zshrc file
2 2
3 for file in $(ls $HOME/.zsh) ; do 3 for file in $(ls $HOME/.shell.d/*.{,z}sh) ; do
4 source $HOME/.zsh/$file 4 source $file
5 done 5 done
6 6
7 # Login greeting ------------------ 7 # Login greeting ------------------
8 8
9 if [ ! "$SHOWED_SCREEN_MESSAGE" = "true" ]; then 9 if [ ! "$SHOWED_SCREEN_MESSAGE" = "true" ]; then
10 if which screen > /dev/null; then 10 if which screen > /dev/null; then
11 detached_screens=`screen -list | grep Detached | sed -e 's/ (Detached)//'` 11 detached_screens=`screen -list | grep Detached | sed -e 's/ (Detached)//'`
12 if [ ! -z "$detached_screens" ]; then 12 if [ ! -z "$detached_screens" ]; then
13 echo "+---------------------------------------+" 13 echo "+---------------------------------------+"
14 echo "| Detached screens are available: |" 14 echo "| Detached screens are available: |"
15 echo "$detached_screens" 15 echo "$detached_screens"
16 echo "+---------------------------------------+" 16 echo "+---------------------------------------+"
17 fi 17 fi
18 fi 18 fi
19 export SHOWED_SCREEN_MESSAGE="true" 19 export SHOWED_SCREEN_MESSAGE="true"
20 fi 20 fi
21 21
22 # If available, source private extensions stored in a different repo 22 # If available, source private extensions stored in a different repo
23 if [[ -a ~/.private/zshrc ]]; then 23 if [[ -a ~/.private/zshrc ]]; then
24 source ~/.private/zshrc 24 source ~/.private/zshrc
25 fi 25 fi
26 26
27 if [[ -a ~/.zshrc-machine ]]; then 27 if [[ -a ~/.zshrc-machine ]]; then
28 source ~/.zshrc-machine 28 source ~/.zshrc-machine
29 fi 29 fi