Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Polskie forum (Polish) Polish OTW
  • Search

zsh vs bash

Rozmowy nie związane ściśle z Gentoo

Moderator: SlashBeast

Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1

zsh czy bash?

zsh
4
40%
bash
6
60%
 
Total votes: 10
Your vote has been cast.

Author
Message
soban_
l33t
l33t
User avatar
Posts: 668
Joined: Wed Aug 27, 2008 1:30 pm
Location: /home/soban
Contact:
Contact soban_
Website

zsh vs bash

  • Quote

Post by soban_ » Wed Jun 01, 2011 2:46 pm

Osatnio zaliczylem przesiadke na zsh i w sumie jestem zadowolony. Jednak mam problem z przyciskami typu (Delete, End, Home) np jak wcisne Delete to zamiast kasowac to co jest przed kursyowa dostaje "~" - tzw tylde. Mi osobiscie bardzo podoba sie w zsh mozliwosc wchodzenia do folderow bez wpisywania np "cd", albo mozliwosc tabulatorem dobierania polecen czy uzupelniania sciezek. Oczywiscie po skonfigurowaniu go z http://www.gentoo.org/doc/pl/zsh.xml - ta dokumentacja. A czego Wy uzywacie i dlaczego? ( :
gg: 525600
Top
Garrappachc
Guru
Guru
User avatar
Posts: 362
Joined: Fri Dec 26, 2008 9:13 pm
Location: Kraków
Contact:
Contact Garrappachc
Website

  • Quote

Post by Garrappachc » Wed Jun 01, 2011 4:12 pm

Kiedyś używałem zsh i był świetny, zwłaszcza prompty i możliwości ładnego sklejenia z emerge. Natomiast obecnie używam basha, bo lepiej się integruje z cięższymi powłokami, jak Konsole.

P.S. Jeśli chodzi o dopełnianie Tabem - przecież bash też to ma.
De profundis clamavi ad Te, Domine

emerge --info | virtual aviation
Top
soban_
l33t
l33t
User avatar
Posts: 668
Joined: Wed Aug 27, 2008 1:30 pm
Location: /home/soban
Contact:
Contact soban_
Website

  • Quote

Post by soban_ » Wed Jun 01, 2011 4:14 pm

Wiem, ale chodzilo mi o wyswietlanie wszystkich mozliwych opcji (bash tego nie ma, chyba? - np w danym folderze dopelnia nazwy plikow, przez ktore moge sie przelaczac wciskajac dalej tab) ( -: zastanawiam sie tez jak naprawic te przyciski Home, End, Delete...
gg: 525600
Top
bluebird89
n00b
n00b
Posts: 8
Joined: Sat Aug 28, 2004 11:20 pm

  • Quote

Post by bluebird89 » Wed Jun 01, 2011 6:28 pm

U mnie działa coś takiego w .zshrc:

Code: Select all

bindkey -e

bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
bindkey '\e[3~' delete-char

case $TERM in (xterm*)
        bindkey '\e[H' beginning-of-line
        bindkey '\e[F' end-of-line
esac
(prawdopodobnie ściągnięte z jakiegoś configa z neta)
Top
soban_
l33t
l33t
User avatar
Posts: 668
Joined: Wed Aug 27, 2008 1:30 pm
Location: /home/soban
Contact:
Contact soban_
Website

  • Quote

Post by soban_ » Wed Jun 01, 2011 6:36 pm

Dziekuje, pomoglo. A mozecie swoje cale konfigi lub fragmenty tutaj powstawiac? Moje np wygladaja tak w bashu:

Code: Select all

[20:34:41 - 11-06-01] /home/soban % cat .bashrc
if [[ $- != *i* ]] ; then
        # Shell is non-interactive.  Be done now!
        return
fi


# Put your fun stuff here.
alias ls="ls --color"
alias shutdown='sudo shutdown'
alias teamviewer='/home/soban/teamviewer6/teamviewer'
alias reboot='sudo reboot'
alias logisim='java -jar /usr/share/logisim/lib/logisim.jar'
alias winbox='wine /home/soban/winbox.exe'
export LC_ALL=pl_PL.UTF-8
export LANG=pl_PL.UTF-8

#kolorowanie znaku zachety
#export PS1="[\t] \[\e[35;3m\]\u@\[\e[33;3m\]\H \[\e[34;2m\]\w \[\e[31;1m\]\\$ \[\e[0m\]"
#export PS1="\[\e[37;3m\][\e[34;2m\]\t\e[37;3m\]] \[\e[35;3m\]\u@\[\e[33;3m\]\H \[\e[34;2m\]\w \[\e[31;1m\]\\$ \[\e[0m\]"
#export PS1="\[\e[37;3m\][\e[34;2m\]\t\e[37;3m\]] \[\e[35;3m\]\u@\[\e[33;3m\]\H \[\e[34;2m\]\w \[\e[31;1m\]\\$ \[\e[0m\]"
#export PS1="[\t] \[\e[35;3m\]\u@\[\e[33;3m\]\H \[\e[34;2m\]\w \[\e[31;1m\]\\$ \ [\e[0m\]"

#export PS1="\[\e[35;1m\][\t][35;3m\] \[\e[35;3m\]\u@\[\e[33;3m\]\H \[\e[34;2m\] \W \[\e[31;1m\]\\$ \[\e[0m\]"

#kolorowanie man
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
#duze pliki
alias ducks='du -cks * | sort -rn | head -15|~/mb.py'
#rozmiar histori bez powtarzania
export TMOUT=3600

export HISTSIZE=5000
export HISTCONTROL=ignoredups
export HISTTIMEFORMAT="%h %d %H:%M:%S "
Zas zsh:

Code: Select all

[20:36:34 - 11-06-01] /home/soban % cat .zshrc

#!/bin/zsh

# dopełnianie komend
autoload -U compinit
compinit
#poprawiony end, home, delete
bindkey -e

bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
bindkey '\e[3~' delete-char

case $TERM in (xterm*)
          bindkey '\e[H' beginning-of-line
          bindkey '\e[F' end-of-line
esac

# poprawianie komend
alias ls="ls --color"
alias shutdown='sudo shutdown'
alias teamviewer='/home/soban/teamviewer6/teamviewer'
alias reboot='sudo reboot'
alias logisim='java -jar /usr/share/logisim/lib/logisim.jar'
alias winbox='wine /home/soban/winbox.exe'

zstyle ':completion:*:descriptions' format '%U%B%d%b%u'
zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
setopt correctall
export HISTSIZE=2000
export HISTFILE="$HOME/.history"
export SAVEHIST=$HISTSIZE
setopt hist_ignore_all_dups
setopt hist_ignore_space
setopt autocd


# znak zachęty
autoload -U promptinit
export PS1="[%* - %D] %d %% "
Moze macie jeszcze jakies ciekawe konfiguracje? ( :
Last edited by soban_ on Wed Jun 01, 2011 10:27 pm, edited 1 time in total.
gg: 525600
Top
SlashBeast
Retired Dev
Retired Dev
User avatar
Posts: 2922
Joined: Tue May 23, 2006 11:50 am
Contact:
Contact SlashBeast
Website

  • Quote

Post by SlashBeast » Wed Jun 01, 2011 8:06 pm

zsh wymiata jak tylko sie wie, jak wykorzystac jego bajery wzgledem basha.

interaktywny szel - zsh
skrypty - bash badz posix sh.

moj aktualny zshrc - http://paste.pocoo.org/show/JelPMotJArISEZzzwAdW/
Top
soban_
l33t
l33t
User avatar
Posts: 668
Joined: Wed Aug 27, 2008 1:30 pm
Location: /home/soban
Contact:
Contact soban_
Website

  • Quote

Post by soban_ » Thu Jun 02, 2011 8:10 pm

Dzieki @SlashBeast za konfig, na pewno sie przyda.
Garrappachc wrote:Natomiast obecnie używam basha, bo lepiej się integruje z cięższymi powłokami, jak Konsole.
Jest na to jakies lekarstwo? Bo tez mam wrazenie ze w tty/konsole/yakuake on tak jakby sie "zawiesza" zanim sie uruchomi.
gg: 525600
Top
Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Polish OTW”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy