$ brew install zsh
$ chsh -s /usr/local/bin/zsh
various scripts
Fish "Finally, a command line shell for the 90s"
zsh is a shell designed for interactive use, although it is also a powerful scripting language.
$ brew install zsh
$ chsh -s /usr/local/bin/zsh
$ apt-get install zsh
$ chsh -s `which zsh`
$ ~/.zshrc #
$ ls **/*.txt # extended globbing
$ ls *.[^oh] # exclude
$ ls run<200-300> # range
$ ls *.c~bar.c # exclude file
$ cd
chapters/ docs/ images/
$ cd /u/l/b/ <TAB>
$ cd /usr/local/bin/
$ cd /usr/local/bin
$ cd bin share
/usr/local/share
alias -s md="code"
./README.md
Programmable completion
The plugin manager for zsh.
$ brew install antigen
source /usr/local/share/antigen/antigen.zsh
antigen init ~/.antigenrc
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle autojump
antigen bundle thefuck
antigen bundle git
antigen bundle web-search
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
# Load the theme.
antigen theme robbyrussell
# Load bundle from https://github.com/....
antigen bundle djui/alias-tips
# Tell antigen that you're done and activate completion
antigen apply
If problem with new bundles, delete ~/.antigen/
$ ls -
-1 -- single column output
-A -- list all except . and ..
-B -- print octal escapes for control characters
-C -- list entries in columns sorted vertically
....
ln -s 2.4.11 latest
-F -- remove existing destination directories
-f -- remove existing destination files
....
ssh
kill
Before :
After :
Before :
After :
Before:
After:
Oh My Zsh will not make you a 10x developer…but you might feel like one.
autojump # brew install autojump j …
brew # aliases "bubu"
command-not-found # need brew tap homebrew/command-not-found
colored-man-pages
docker # aliases + docker history <TAB>
docker-compose # aliases + docker-compose up <TAB>
git # collections of aliases
git-remote-branch # completions on remote branches
mvn # aliases + completions
osx # https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/osx
thefuck # brew install thefuck https://github.com/nvbn/thefuck
Powerlevel9k is a theme for ZSH which uses Powerline Fonts.
$ brew tap caskroom/fonts
$ brew cask install font-hack-nerd-font
$ antigen theme bhilburn/powerlevel9k
If the theme is not loaded when starting a terminal, edit your .zshrc file and add the following:
POWERLEVEL9K_INSTALLATION_PATH=$HOME/.antigen/bundles/bhilburn/powerlevel9k/powerlevel9k.zsh-theme
Delete the ~/.antigen folder and restart your terminal.
Do you source your dotfiles ?
A command-line fuzzy finder
changez rapidement de répertoire
de la coloration syntaxique pour la ligne de commande
Interactive Pipe To: The missing cli interactive workflow
for file in ~/.zshrc.d/*.sh;
do
source $file
done
$ ls ~/.zshrc.d/
advanced-ssh.sh env.sh ipt.sh macosx.test svn.sh
aliases.sh golang.sh lmfr.sh powerlevel9K.sh zsh-highlight.sh
antigem bundle djui/alias-tips
$ git commit -am
Alias tip: g cam