You are not logged in.
Pages: 1
hello
i've been using Zsh for a while ( i love it ) but i got 2 problem a 1 question.
when i install something like rtorrent , when i am going to execute it i can complete the " rtorrent " command with tab , i put rtor[TAB] and it didn't show the rest or complete, this only happens with program that i recently installed ( in this sesion)
another problem is that when i use the kill program , i normaly press [Tab] to see a list of the running program, but i only see the programs that i run, there is a way to see all the programs there are in execution by all users? ( i am a kind of sistem admin )
and the question is , is reccomendable to use Zsh like the Root Shell? it can break something? because when i used FreeBsd the encorauge the users to don't change the SHELL of the ROOT user.
that all, GRACIAS DE ANTEMANO!.
ooppz , this is my .zshrc
export HISTFILE=~/.zsh_history
export HISTSIZE=50000
export SAVEHIST=50000
export CFLAGS="-pipe -march=athlon64 -O2"
export CXXFLAGS="-pipe -march=athlon64 -O2"
autoload -U compinit promptinit
compinit
promptinit
# This will set the default prompt to the walters theme
prompt walters
zstyle ':completion:*' menu select
# key bindings
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
bindkey "\e[5~" beginning-of-history
bindkey "\e[6~" end-of-history
bindkey "\e[3~" delete-char
bindkey "\e[2~" quoted-insert
bindkey "\e[5C" forward-word
bindkey "\eOc" emacs-forward-word
bindkey "\e[5D" backward-word
bindkey "\eOd" emacs-backward-word
bindkey "\e\e[C" forward-word
bindkey "\e\e[D" backward-word
bindkey "^H" backward-delete-word
# for rxvt
bindkey "\e[8~" end-of-line
bindkey "\e[7~" beginning-of-line
# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line
# for freebsd console
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
# completion in the middle of a line
bindkey '^i' expand-or-complete-prefix
alias ls='ls --color=auto -F'
Last edited by slacknatcher (2009-07-08 22:10:18)
Miscusi for my bad english
Offline
when i install something like rtorrent , when i am going to execute it i can complete the " rtorrent " command with tab , i put rtor[TAB] and it didn't show the rest or complete, this only happens with program that i recently installed ( in this sesion)
Invoke this to regenerate the completion cache for $PATH:
rehash
another problem is that when i use the kill program , i normaly press [Tab] to see a list of the running program, but i only see the programs that i run, there is a way to see all the programs there are in execution by all users? ( i am a kind of sistem admin )
Try to add this to your .zshrc:
zstyle ':completion:*:*:kill:*' command 'ps -u$USER -o pid,%cpu,tty,cputime,cmd'
and the question is , is reccomendable to use Zsh like the Root Shell? it can break something? because when i used FreeBsd the encorauge the users to don't change the SHELL of the ROOT user.
I've used zsh as the root $SHELL for several years on both Arch, Debian, Gentoo, and FreeBSD. I've not encountered any issues.
Last edited by shagrat (2009-07-08 20:24:45)
Offline
i use zsh as the root shell, too, and have not encountered any problems.
Nai haryuvalyë melwa rë
Offline
shagrat thank a lot, this solved all my problem, i am going to install it like root shell
Thank!
Miscusi for my bad english
Offline
Pages: 1