Browse code

Merge remote-tracking branch 'upstream/master'

Nicolas Viennot authored on 15/05/2011 at 13:00:34
Showing 6 changed files
... ...
@@ -20,7 +20,7 @@ parse_git_dirty() {
20 20
 
21 21
 # Checks if there are commits ahead from remote
22 22
 function git_prompt_ahead() {
23
-  if $(echo "$(git log origin/master..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then
23
+  if $(echo "$(git log origin/$(current_branch)..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then
24 24
     echo "$ZSH_THEME_GIT_PROMPT_AHEAD"
25 25
   fi
26 26
 }
... ...
@@ -20,6 +20,11 @@ bindkey ' ' magic-space    # also do history expansion on space
20 20
 
21 21
 bindkey '^[[Z' reverse-menu-complete
22 22
 
23
+# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
24
+bindkey "^[[3~" delete-char
25
+bindkey "^[3;5~" delete-char
26
+bindkey "\e[3~" delete-char
27
+
23 28
 # consider emacs keybindings:
24 29
 
25 30
 #bindkey -e  ## emacs key bindings
26 31
new file mode 100644
... ...
@@ -0,0 +1,6 @@
0
+# commands to control local apache2 server installation
1
+# paths are for osx installation via macports
2
+
3
+alias apache2start='sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper start'
4
+alias apache2stop='sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper stop'
5
+alias apache2restart='sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper restart'
0 6
new file mode 100644
... ...
@@ -0,0 +1,22 @@
0
+# ------------------------------------------------------------------------------
1
+#          FILE:  compleat.plugin.zsh
2
+#   DESCRIPTION:  oh-my-zsh plugin file.
3
+#        AUTHOR:  Sorin Ionescu (sorin.ionescu@gmail.com)
4
+#       VERSION:  1.0.0
5
+# ------------------------------------------------------------------------------
6
+
7
+
8
+if (( ${+commands[compleat]} )); then
9
+  local prefix="${commands[compleat]:h:h}"
10
+  local setup="${prefix}/share/compleat-1.0/compleat_setup" 
11
+
12
+  if [[ -f "$setup" ]]; then
13
+    if ! bashcompinit >/dev/null 2>&1; then
14
+      autoload -U bashcompinit
15
+      bashcompinit -i
16
+    fi
17
+
18
+    source "$setup" 
19
+  fi
20
+fi
21
+
0 22
new file mode 100644
... ...
@@ -0,0 +1,4 @@
0
+PROMPT=$'%{$fg[green]%}%n@%m: %{$reset_color%}%{$fg[blue]%}%/%{$reset_color%}
1
+%{$fg_bold[red]%}➜ %{$reset_color%} '
2
+
3
+PROMPT2="%{$fg_blod[black]%}%_> %{$reset_color%}"
... ...
@@ -1,6 +1,6 @@
1 1
 #PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
2 2
 PROMPT="%{$fg_bold[cyan]%}%T%{$fg_bold[green]%} %{$fg_bold[white]%}%n%{$fg[magenta]%}@%{$fg_bold[white]%}%m %{$fg_bold[green]%}%d
3
-%{$fg_bold[yellow]%}%% $(git_prompt_info)%{$reset_color%}"
3
+%{$fg_bold[yellow]%}%% %{$reset_color%}"
4 4
 
5 5
 #ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
6 6
 #ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"