Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] [ZSH] Problem z dopełnaniem
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
SlashBeast
Retired Dev
Retired Dev


Joined: 23 May 2006
Posts: 2922

PostPosted: Mon Mar 26, 2007 2:48 pm    Post subject: [SOLVED] [ZSH] Problem z dopełnaniem Reply with quote

Witam was! Mam dziwny problem z ZSH. Wstępem powiem, iz przesiadłem się dopiero co z PLD/Th gdzie używałem ZSH, bardzo podobało mi się dopełnanie z historii, np. miałem w history:
Code:
screen -s ekg -S ekg
screen irssi
screen -U
setxkbmap
strace

Gdy wpisywałem "scree" i naciskałem Up Arrow dopełniało mi kolejno screen irssi, screen -s ekg -S ekg a jak jeszcze raz to screen -U. Jednak w gentoo gdy wpisze "scree" i dam Up Arrow wkleja mi ostatnio wpisane polecenie, nie dopełnia mi tego co juz wpisałem. Napewno coś niedokonfigurwoałem, jednak nie wiem co. Moje .zshrc:
Code:
HISTFILE=~/.zsh_history
HISTSIZE=2000
SAVEHIST=1000

autoload -Uz compinit
compinit

umask 077

alias poweroff="sudo poweroff"
alias reboot="sudo reboot"
alias fixname="perl ~/scripts/fixname.pl $*"

restart () {
          exec $SHELL "$@"
}

alias grep='grep --colour=auto'
alias ls='ls --color=auto'

autoload -U promptinit
promptinit
prompt gentoo

export TERM="xterm"

bindkey "^[[7~" beginning-of-line
bindkey "^[[8~" end-of-line
bindkey "^[[3~" delete-char

Jakby ktoś mógł pomóc bardzo był bym wdzięczny.

Pozdrawiam.


Last edited by SlashBeast on Mon Mar 26, 2007 3:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gogiel
Guru
Guru


Joined: 11 Nov 2004
Posts: 347

PostPosted: Mon Mar 26, 2007 3:07 pm    Post subject: Reply with quote

Ja mam to zabindowane na PgUp, PgDown i wyglada to tak:
Code:
   bindkey "\e[5~" history-search-backward #Pgup
   bindkey "\e[6~" history-search-forward   #Pgdown

_________________
Jabber: gogiel@gmail.com
Back to top
View user's profile Send private message
SlashBeast
Retired Dev
Retired Dev


Joined: 23 May 2006
Posts: 2922

PostPosted: Mon Mar 26, 2007 3:20 pm    Post subject: Reply with quote

Dokładnie przed chwilą wyciągnołem z PLDowego zsh
Code:
bindkey "^[[A" history-beginning-search-backward
Nie mniej jednak dziękuje za pomoc bo i to samo rozwiązanie podpowiedziałeś. :)

SOLVED.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum