Wednesday, October 23, 2013


Zsh is a powerful shell that operates as both an interactive shell and as a scripting language interpreter. While being compatible with Bash (not by default, only if you issue "emulate sh"), it offers many advantages such as:
  • Faster
  • Improved tab completion
  • Improved globbing
  • Improved array handling
  • Fully customisable
Information obtained from Arch Wiki:

To make it my default shell just had to follow the information here:

my .zshrc

#adding location save of PS1 and loading autocompletion
autoload -U compinit promptinit
PS1='[\u@\h \W]\$ '
#adding adb to my shell
export PATH=$PATH{}:/opt/android-sdk/tools/:/opt/android-sdk/platform-tools/
#aliases for my commands
alias update='sudo pacman -Syu'
alias remove='sudo pacman -Rs'
alias decrar='unrar e'
alias install='sudo pacman -S'
alias ixz='sudo pacman -U'
alias dtar='tar -xvzf'
alias ls='ls -l --color=auto'
alias apagar='sudo shutdown'
# This will set the default prompt to the walters theme
prompt walters
#adding arrowkey to autocompletion search
zstyle ':completion:*' menu select
source /usr/share/doc/pkgfile/command-not-found.zsh
#Prevent from putting duplicate lines in the history

I'll let you know the difficulties that i may have in the future with zsh.

No comments:

Post a Comment