Browse code

Rename appearance.zsh so that it gets loaded after spectrum.zsh. Allows to use 256 colors in prompt themes.

Julien Nicoulaud authored on 20/11/2010 at 17:06:23
Showing 2 changed files
1 1
deleted file mode 100644
... ...
@@ -1,38 +0,0 @@
1
-# ls colors
2
-autoload colors; colors;
3
-export LSCOLORS="Gxfxcxdxbxegedabagacad"
4
-#export LS_COLORS
5
-
6
-# Enable ls colors
7
-if [ "$DISABLE_LS_COLORS" != "true" ]
8
-then
9
-  # Find the option for using colors in ls, depending on the version: Linux or BSD
10
-  ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
11
-fi
12
-
13
-#setopt no_beep
14
-setopt auto_cd
15
-setopt multios
16
-setopt cdablevarS
17
-
18
-if [[ x$WINDOW != x ]]
19
-then
20
-    SCREEN_NO="%B$WINDOW%b "
21
-else
22
-    SCREEN_NO=""
23
-fi
24
-
25
-# Apply theming defaults
26
-PS1="%n@%m:%~%# "
27
-
28
-# git theming default: Variables for theming the git info prompt
29
-ZSH_THEME_GIT_PROMPT_PREFIX="git:("         # Prefix at the very beginning of the prompt, before the branch name
30
-ZSH_THEME_GIT_PROMPT_SUFFIX=")"             # At the very end of the prompt
31
-ZSH_THEME_GIT_PROMPT_DIRTY="*"              # Text to display if the branch is dirty
32
-ZSH_THEME_GIT_PROMPT_CLEAN=""               # Text to display if the branch is clean
33
-
34
-# Setup the prompt with pretty colors
35
-setopt prompt_subst
36
-
37
-# Load the theme
38
-source "$ZSH/themes/$ZSH_THEME.zsh-theme"
39 1
\ No newline at end of file
40 2
new file mode 100644
... ...
@@ -0,0 +1,38 @@
0
+# ls colors
1
+autoload colors; colors;
2
+export LSCOLORS="Gxfxcxdxbxegedabagacad"
3
+#export LS_COLORS
4
+
5
+# Enable ls colors
6
+if [ "$DISABLE_LS_COLORS" != "true" ]
7
+then
8
+  # Find the option for using colors in ls, depending on the version: Linux or BSD
9
+  ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
10
+fi
11
+
12
+#setopt no_beep
13
+setopt auto_cd
14
+setopt multios
15
+setopt cdablevarS
16
+
17
+if [[ x$WINDOW != x ]]
18
+then
19
+    SCREEN_NO="%B$WINDOW%b "
20
+else
21
+    SCREEN_NO=""
22
+fi
23
+
24
+# Apply theming defaults
25
+PS1="%n@%m:%~%# "
26
+
27
+# git theming default: Variables for theming the git info prompt
28
+ZSH_THEME_GIT_PROMPT_PREFIX="git:("         # Prefix at the very beginning of the prompt, before the branch name
29
+ZSH_THEME_GIT_PROMPT_SUFFIX=")"             # At the very end of the prompt
30
+ZSH_THEME_GIT_PROMPT_DIRTY="*"              # Text to display if the branch is dirty
31
+ZSH_THEME_GIT_PROMPT_CLEAN=""               # Text to display if the branch is clean
32
+
33
+# Setup the prompt with pretty colors
34
+setopt prompt_subst
35
+
36
+# Load the theme
37
+source "$ZSH/themes/$ZSH_THEME.zsh-theme"
0 38
\ No newline at end of file