setup: profile (HEAD)

Artur Frysiak wiget w pld-linux.org
Pon, 15 Wrz 2003, 15:40:08 CEST


On Mon, Sep 15, 2003 at 04:32:46PM +0200, blues wrote:
> Module name:	setup
> Changes by:	blues	03/09/15 16:32:44
> 
> Modified files:
> 	profile
> 
> Log message:
> - moved from zsh.spec into proper place.
> 
> Index: profile
> ===================================================================
> RCS file: /cvsroot/setup/etc/profile,v
> diff -d -u -r1.29 -r1.30
> --- profile	15 Sep 2003 14:00:47 -0000	1.29
> +++ profile	15 Sep 2003 14:32:43 -0000	1.30
> @@ -127,7 +127,10 @@
>  	RPS1="%T"
>  	export RPS1
>  
> -	# Setup key bindings
> +	# aliases:
> +	alias which=whence

Aliasy w profile ? Przecież nie są dziedziczone przez powłoki potomne...

> +
> +	# Setup key bindings:
>  	bindkey -e >/dev/null 2>&1
>  	bindkey "^[[1~" beginning-of-line >/dev/null 2>&1
>  	bindkey "^[[H" beginning-of-line >/dev/null 2>&1
> @@ -136,6 +139,15 @@
>  	bindkey "^[[3~" delete-char >/dev/null 2>&1
>  	bindkey "^[[5~" history-search-backward >/dev/null 2>&1
>  	bindkey "^[[6~" history-search-forward >/dev/null 2>&1
> +
> +	# xterm:
> +	bindkey \`tput khome\` beginning-of-line >/dev/null 2>&1
> +	bindkey \`tput kend\` end-of-line >/dev/null 2>&1
> +	bindkey \`tput kdch1\` delete-char >/dev/null 2>&1
> +	bindkey \`tput kpp\` up-history >/dev/null 2>&1
> +	bindkey \`tput knp\` end-of-history >/dev/null 2>&1
> +	bindkey \`tput kcuu1\` history-beginning-search-backward >/dev/null 2>&1
> +	bindkey \`tput kcud1\` history-beginning-search-forward >/dev/null 2>&1

Polecam man zshmodules a szczególnie "echoti". Pare forków mniej.

Pozdrawiam
-- 
Artur Frysiak
http://www.pld-linux.org/



Więcej informacji o liście dyskusyjnej pld-devel-pl