Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1

Użytkownik


czesc
po zainstalowaniu czegos z apt-get nie pokazuje mi sie komenda po wpisaniu kilku literek i nacisnieciu TAB. jakby wogule nie istnial program.
oto moj zshrc
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
zstyle ':completion:*' completer _expand _complete
zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' file-sort name
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' list-suffixes true
zstyle ':completion:*' matcher-list 'r:|[._-]=** r:|=**'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' preserve-prefix '//[^/]##/'
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' squeeze-slashes true
zstyle :compinstall filename '~/.zshrc'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zcache
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd extendedglob notify
unsetopt beep
# End of lines configured by zsh-newuser-install
setopt CORRECT
setopt CHECK_JOBS
setopt AUTO_PUSHD
setopt MULTIOS
setopt HIST_IGNORE_ALL_DUPS
setopt NO_PRINT_EXIT_VALUE
setopt NO_MENU_COMPLETE
setopt NO_AUTO_MENU
autoload -U promptinit
promptinit
GREEN=$'%{\e[1;32m%}'
YELLOW=$'%{\e[1;33m%}'
RESET=$'%{\e[1;0m%}'
RED=$'%{\e[1;31m%}'
case $TERM in
xterm*)
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
;;
esac
if [[ $( whoami ) = root ]]; then
export PS1="%{$RED%}%n %{$GREEN%}%~%{$RESET%} "
else
export PS1="%{$YELLOW%}%n %{$GREEN%}%~%{$RESET%} "
fi
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -lh'
alias l='ls $LS_OPTIONS -lA'
alias list-tables='iptables -L -n --line-numbers'
alias du1='du -h --max-depth=1'
alias df='df -h'
export EDITOR=mcedit
export MYSQL_PS1="[\u@\h] \d> "Ostatnio edytowany przez ukasz (2010-02-08 14:51:53)

Offline







Palacz








Nie zmieniła Ci się przypadkiem domyślna powłoka ?
Offline






Admin łajza







echo $PATH
Offline

Użytkownik


root ~ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
root ~ whereis tcptrack
tcptrack: /usr/bin/tcptrack /usr/share/man/man1/tcptrack.1.gz

Offline







Palacz








Co zwraca polecenie
echo $SHELL
?
Offline




Moderator Mamut
czy po zamknieciu i ponownym odpaleniu powloki nadal sie nie uzupelnia?
Offline

Użytkownik


echo $SHELL
/bin/zsh
po restarcie powloki (logowania ponowne) jest ok.
Ostatnio edytowany przez ukasz (2010-02-04 09:16:22)

Offline




Moderator Mamut
ukasz napisał(-a):
po restarcie powloki (logowania ponowne) jest ok.
chodzi o to ze powloki czesto kozystaja z cache dla autouzupelniania komend (aby za kazdym razem nie czytac katalogow z PATH) ... u Cibie ten cache jest nawet jawnie wlaczony w konfigu ... jest tez jakies polecenie do jego odswierzenia ...
Offline

Użytkownik


wlasnie sprawdzalem cache ale nawet plik nie istnieje WTF ?
dziwna sprawa bo nigdy wczesniej uzywajac basha nie mialem takiego problemu.
Ostatnio edytowany przez ukasz (2010-02-04 11:56:17)

Offline




Moderator Mamut
gdzie i jaki cache sprawdziles ... jak co mozesz sprobowac zmienic:
zstyle ':completion:*' use-cache on
na off
Edit: ten cache to raczej siedzi w pamieci a nie w pliku ...
Ostatnio edytowany przez bercik (2010-02-04 15:32:21)
Offline

Użytkownik


dalej nic. nawet wywalilem:
zstyle ':completion:*' completer _expand _complete
zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' file-sort name
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' list-suffixes true
zstyle ':completion:*' matcher-list 'r:|[._-]=** r:|=**'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' preserve-prefix '//[^/]##/'
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' squeeze-slashes true
zstyle :compinstall filename '~/.zshrc'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zcache
i nic

Offline


Członek DUG



Wrzuciłem ten konfig do siebie i tak średnio działa bo się potrafi nawet zwiesić na chwilę, ale dopełnienie działa jako tako, chociaż nie wszystko dopełnia w porównaniu z moją konfiguracją.
Wrzuć sobie mój konfig i zobacz czy działa: http://forum.dug.net.pl/viewtopic.php?pid=136025#p136025
Offline

Użytkownik


problem rozwiazuje to:
http://zshwiki.org/home/examples/compsys/general
oto moj koncowy zshrc
# The following lines were added by compinstall
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/bin/X11"
typeset -U PATH
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
_force_rehash() {
(( CURRENT == 1 )) && rehash
return 1 # Because we didn't really complete anything
}
zstyle ':completion:*' completer _oldlist _expand _force_rehash _complete
zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' file-sort name
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' list-suffixes true
zstyle ':completion:*' matcher-list 'r:|[._-]=** r:|=**'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' preserve-prefix '//[^/]##/'
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' squeeze-slashes true
zstyle :compinstall filename '~/.zshrc'
zstyle ':completion:*' use-cache on
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd extendedglob notify beep
# End of lines configured by zsh-newuser-install
setopt CORRECT
setopt CORRECTALL
setopt CHECK_JOBS
setopt AUTO_PUSHD
setopt MULTIOS
setopt HIST_IGNORE_ALL_DUPS
setopt EXTENDED_HISTORY
setopt NO_PRINT_EXIT_VALUE
setopt NO_MENU_COMPLETE
setopt NO_AUTO_MENU
autoload -U promptinit
promptinit
case $TERM in
xterm*)
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
;;
esac
#RED GREEN YELLOW BLUE MAGENTA CYAN WHITE
autoload -U colors
colors
export PS1="%{$fg[green]%}%n%{$reset_color%}%{$fg[red]%}@%{$reset_color%}%{$fg[cyan]%}%m %{$fg_bold[white]%}%~ %# %{$reset_color%}%"
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -lh'
alias l='ls $LS_OPTIONS -lA'
alias list-tables='iptables -L -n --line-numbers'
alias du1='du -h --max-depth=1'
alias df='df -h'
export EDITOR=mcedit
export MYSQL_PS1="[\u@\h] \d> "Ostatnio edytowany przez ukasz (2010-02-08 14:51:27)

Offline
Strony: 1