summaryrefslogtreecommitdiffstats
path: root/.zsh
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-06-02 02:08:07 +0200
committerFlorian Pritz <f-p@gmx.at>2009-06-02 02:08:07 +0200
commit8ea1a686d9d1b312dba46de088116a5d7291e0c5 (patch)
treed1d5aa54824fa321bac686acb7d2ebd2b4f92cb8 /.zsh
parent9d4173746199c7ebdbd58a18ec57dee742ba013c (diff)
downloaddotfiles-8ea1a686d9d1b312dba46de088116a5d7291e0c5.tar.gz
dotfiles-8ea1a686d9d1b312dba46de088116a5d7291e0c5.tar.xz
fix completion bug (file-sort time); add ft for vim
Diffstat (limited to '.zsh')
-rw-r--r--.zsh/rc/10colors4
-rw-r--r--.zsh/rc/10keybindings2
-rw-r--r--.zsh/rc/10variables2
-rw-r--r--.zsh/rc/15prompt2
-rw-r--r--.zsh/rc/30functions2
-rw-r--r--.zsh/rc/50options2
-rw-r--r--.zsh/rc/60aliases2
-rw-r--r--.zsh/rc/70completion/10misc7
-rw-r--r--.zsh/rc/70completion/10own_functions2
-rw-r--r--.zsh/rc/99greetings2
10 files changed, 25 insertions, 2 deletions
diff --git a/.zsh/rc/10colors b/.zsh/rc/10colors
index b43c4f1..92816ab 100644
--- a/.zsh/rc/10colors
+++ b/.zsh/rc/10colors
@@ -39,4 +39,6 @@ if [ "$TERM" = "linux" ]; then
fi
# some better colors for ls
-eval "`dircolors -b`" \ No newline at end of file
+eval "`dircolors -b`"
+
+# vim:set ft=zsh
diff --git a/.zsh/rc/10keybindings b/.zsh/rc/10keybindings
index 5d76ab8..3d0797a 100644
--- a/.zsh/rc/10keybindings
+++ b/.zsh/rc/10keybindings
@@ -11,3 +11,5 @@ bindkey "^[[8~" end-of-line # End
# HOWTO make your own:
# bindkey '<crtl+alt+key>' <action> (do this in a shell)
# for some actions run `bindkey`
+
+# vim:set ft=zsh
diff --git a/.zsh/rc/10variables b/.zsh/rc/10variables
index f63789e..28d62ab 100644
--- a/.zsh/rc/10variables
+++ b/.zsh/rc/10variables
@@ -10,3 +10,5 @@ export PAGER=vimpager
#export LESSOPEN='|/usr/bin/lesspipe.sh %s 2>&-'
#export LESS='-i -c -N -w -g -M -R -P%t?f%f \
#:stdin .?pb%pb\%:?lbLine %lb:?bbByte %bb:-...'
+
+# vim:set ft=zsh
diff --git a/.zsh/rc/15prompt b/.zsh/rc/15prompt
index e4e062f..e820d9a 100644
--- a/.zsh/rc/15prompt
+++ b/.zsh/rc/15prompt
@@ -41,3 +41,5 @@ PROMPT="${fg_light_red}$USERNAME${fg_no_colour}@${fg_light_green}%m${fg_no_colou
## Spelling prompt
SPROMPT='zsh: correct '%R' to '%r' ? ([Y]es/[N]o/[E]dit/[A]bort) '
+
+# vim:set ft=zsh
diff --git a/.zsh/rc/30functions b/.zsh/rc/30functions
index 3250bf9..01b2798 100644
--- a/.zsh/rc/30functions
+++ b/.zsh/rc/30functions
@@ -205,3 +205,5 @@ youtube2mp3() {
done
}
+
+# vim:set ft=zsh
diff --git a/.zsh/rc/50options b/.zsh/rc/50options
index 62df450..e8c16f2 100644
--- a/.zsh/rc/50options
+++ b/.zsh/rc/50options
@@ -48,3 +48,5 @@ setopt HIST_FCNTL_LOCK
# disable XON/XOFF flow control (^s/^q)
stty -ixon
+
+# vim:set ft=zsh
diff --git a/.zsh/rc/60aliases b/.zsh/rc/60aliases
index 2079156..2b8f408 100644
--- a/.zsh/rc/60aliases
+++ b/.zsh/rc/60aliases
@@ -94,3 +94,5 @@ alias -g pp="2>&1 | wgetpaste -X "
alias -s txt=mousepad
alias -s jpg=gpicview
alias -s png=gpicview
+
+# vim:set ft=zsh
diff --git a/.zsh/rc/70completion/10misc b/.zsh/rc/70completion/10misc
index e0fdffe..c3e0d7a 100644
--- a/.zsh/rc/70completion/10misc
+++ b/.zsh/rc/70completion/10misc
@@ -31,7 +31,10 @@ zstyle ':completion:*:functions' ignored-patterns '_*'
# show menu when tabbing
zstyle ':completion:*' menu yes select
-zstyle ':completion:*' file-sort time
+
+# bugged with zsh 4.3.10 for whatever reason
+#zstyle ':completion:*' file-sort time
+zstyle ':completion:*' file-sort name
# remove / after dirnames
# e.g. ls foo/ -> ls foo
@@ -47,3 +50,5 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:
# make some stuff look better
zstyle ':completion:*:descriptions' format $'%{\e[0;31m%}completing %B%d%b%{\e[0m%}'
zstyle ':completion:*:warnings' format $'%{\e[0;31m%}No matches for:%{\e[0m%} %d'
+
+# vim:set ft=zsh:
diff --git a/.zsh/rc/70completion/10own_functions b/.zsh/rc/70completion/10own_functions
index c354849..299241c 100644
--- a/.zsh/rc/70completion/10own_functions
+++ b/.zsh/rc/70completion/10own_functions
@@ -12,3 +12,5 @@ function _ssh-mount () {
compadd $(cat ${HOME}/bin/ssh-mount.sh | egrep "Servers:.*" | sed "s#echo \-e \"\${green}Servers\:\$NC##g; s#\"\;##g; s#,##g")
}
compdef _ssh-mount ssh-mount.sh
+
+# vim:set ft=zsh
diff --git a/.zsh/rc/99greetings b/.zsh/rc/99greetings
index 60b9fcc..842e7e5 100644
--- a/.zsh/rc/99greetings
+++ b/.zsh/rc/99greetings
@@ -11,3 +11,5 @@ if [ -x /usr/bin/fortune ]; then
/usr/bin/fortune -s
fi
echo
+
+# vim:set ft=zsh