[zsh] Keybindings for non Ubuntu/Debian distrib in archAres/basic.zsh
This commit is contained in:
parent
cf50b4f8f0
commit
3d581abf3a
@ -16,7 +16,7 @@ unsetopt beep
|
|||||||
#bindkey -v
|
#bindkey -v
|
||||||
# End of lines configured by zsh-newuser-install
|
# End of lines configured by zsh-newuser-install
|
||||||
# The following lines were added by compinstall
|
# The following lines were added by compinstall
|
||||||
zstyle :compinstall filename '/home/mmaret/.zshrc'
|
zstyle :compinstall filename '/home/mathieu/.zshrc'
|
||||||
|
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
|
@ -12,11 +12,11 @@ export EDITOR=/usr/bin/vim
|
|||||||
#export http_proxy="http://grp-horus:3128"
|
#export http_proxy="http://grp-horus:3128"
|
||||||
#export https_proxy="http://grp-horus:3128"
|
#export https_proxy="http://grp-horus:3128"
|
||||||
#export ftp_proxy="http://grp-horus:3128"
|
#export ftp_proxy="http://grp-horus:3128"
|
||||||
export ANDROID_DIR=/home/mathieu/android/android-sdk-linux_x86-1.5_r1
|
export ANDROID_DIR=/home/mathieu/android/android-sdk-linux_86
|
||||||
export ANDROID_HOME=/home/mathieu/android/android-sdk-linux
|
export ANDROID_HOME=/home/mathieu/android/android-sdk-linux_86
|
||||||
export ANDROID_SKD=/home/mathieu/android/android-sdk-linux/platforms/android-1.6
|
export ANDROID_SKD=/home/mathieu/android/android-sdk-linux/platforms/android-1.6
|
||||||
#export PATH=$ANDROID_DIR/tools:$PATH
|
#export PATH=$ANDROID_DIR/tools:$PATH
|
||||||
export JAVA_HOME=/usr/lib/jvm/java-6-sun
|
export JAVA_HOME=/opt/java
|
||||||
export CATALINA_HOME=/usr/share/tomcat6
|
export CATALINA_HOME=/usr/share/tomcat6
|
||||||
export PATH=$JAVA_HOME/bin/:$ANDROID_HOME/tools:$ANDROID_SKD/tools:$ECLIPSE_HOME:$PATH
|
export PATH=$JAVA_HOME/bin/:$ANDROID_HOME/tools:$ANDROID_SKD/tools:$ECLIPSE_HOME:$PATH
|
||||||
|
|
||||||
@ -34,8 +34,12 @@ export PATH=$JAVA_HOME/bin/:$ANDROID_HOME/tools:$ANDROID_SKD/tools:$ECLIPSE_HOME
|
|||||||
#bindkey '^[[5~' vi-backward-blank-word # Page Up
|
#bindkey '^[[5~' vi-backward-blank-word # Page Up
|
||||||
#bindkey '^[[6~' vi-forward-blank-word # Page Down
|
#bindkey '^[[6~' vi-forward-blank-word # Page Down
|
||||||
|
|
||||||
|
#bindkey "^[[1~" vi-beginning-of-line # Home
|
||||||
|
#bindkey "^[[4~" vi-end-of-line # End
|
||||||
|
|
||||||
|
|
||||||
# make ctrl-r working
|
# make ctrl-r working
|
||||||
#bindkey -M viins '^r' history-incremental-search-backward
|
#bindkey -M viins '^r' history-incremental-search-backward
|
||||||
#bindkey -M vicmd '^r' history-incremental-search-backward
|
#bindkey -M vicmd '^r' history-incremental-search-backward
|
||||||
|
|
||||||
|
|
||||||
|
29
.zsh/host:archAres/basic.zsh
Normal file
29
.zsh/host:archAres/basic.zsh
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# set keybinding for noUbuntu-noDebian
|
||||||
|
|
||||||
|
if [[ "$TERM" != emacs ]]; then
|
||||||
|
[[ -z "$terminfo[kdch1]" ]] || bindkey -M emacs "$terminfo[kdch1]" delete-char
|
||||||
|
[[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line
|
||||||
|
[[ -z "$terminfo[kend]" ]] || bindkey -M emacs "$terminfo[kend]" end-of-line
|
||||||
|
[[ -z "$terminfo[kich1]" ]] || bindkey -M emacs "$terminfo[kich1]" overwrite-mode
|
||||||
|
[[ -z "$terminfo[kdch1]" ]] || bindkey -M vicmd "$terminfo[kdch1]" vi-delete-char
|
||||||
|
[[ -z "$terminfo[khome]" ]] || bindkey -M vicmd "$terminfo[khome]" vi-beginning-of-line
|
||||||
|
[[ -z "$terminfo[kend]" ]] || bindkey -M vicmd "$terminfo[kend]" vi-end-of-line
|
||||||
|
[[ -z "$terminfo[kich1]" ]] || bindkey -M vicmd "$terminfo[kich1]" overwrite-mode
|
||||||
|
|
||||||
|
[[ -z "$terminfo[cuu1]" ]] || bindkey -M viins "$terminfo[cuu1]" vi-up-line-or-history
|
||||||
|
[[ -z "$terminfo[cuf1]" ]] || bindkey -M viins "$terminfo[cuf1]" vi-forward-char
|
||||||
|
[[ -z "$terminfo[kcuu1]" ]] || bindkey -M viins "$terminfo[kcuu1]" vi-up-line-or-history
|
||||||
|
[[ -z "$terminfo[kcud1]" ]] || bindkey -M viins "$terminfo[kcud1]" vi-down-line-or-history
|
||||||
|
[[ -z "$terminfo[kcuf1]" ]] || bindkey -M viins "$terminfo[kcuf1]" vi-forward-char
|
||||||
|
[[ -z "$terminfo[kcub1]" ]] || bindkey -M viins "$terminfo[kcub1]" vi-backward-char
|
||||||
|
|
||||||
|
# ncurses fogyatekos
|
||||||
|
[[ "$terminfo[kcuu1]" == "^[O"* ]] && bindkey -M viins "${terminfo[kcuu1]/O/[}" vi-up-line-or-history
|
||||||
|
[[ "$terminfo[kcud1]" == "^[O"* ]] && bindkey -M viins "${terminfo[kcud1]/O/[}" vi-down-line-or-history
|
||||||
|
[[ "$terminfo[kcuf1]" == "^[O"* ]] && bindkey -M viins "${terminfo[kcuf1]/O/[}" vi-forward-char
|
||||||
|
[[ "$terminfo[kcub1]" == "^[O"* ]] && bindkey -M viins "${terminfo[kcub1]/O/[}" vi-backward-char
|
||||||
|
[[ "$terminfo[khome]" == "^[O"* ]] && bindkey -M viins "${terminfo[khome]/O/[}" beginning-of-line
|
||||||
|
[[ "$terminfo[kend]" == "^[O"* ]] && bindkey -M viins "${terminfo[kend]/O/[}" end-of-line
|
||||||
|
[[ "$terminfo[khome]" == "^[O"* ]] && bindkey -M emacs "${terminfo[khome]/O/[}" beginning-of-line
|
||||||
|
[[ "$terminfo[kend]" == "^[O"* ]] && bindkey -M emacs "${terminfo[kend]/O/[}" end-of-line
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user