Oh my zsh on MacOS
31 Oct 2018- Use
brew install zsh zsh-completions
install zsh 1 - Install
oh-my-zsh
by usingsh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
2 - Edit file
~/.zshrc
- Change your default shell
chsh -s /bin/zsh
- Setup font 3, Set this font in iTerm2 (14px is my personal preference) (iTerm → Preferences → Profiles → Text → Change Font).
After brew install zsh zsh-completions
, can see.
To activate these completions, add the following to your .zshrc:
autoload -Uz compinit
compinit
You may also need to force rebuild `zcompdump`:
rm -f ~/.zcompdump; compinit
Additionally, if you receive "zsh compinit: insecure directories" warnings when attempting
to load these completions, you may need to run this:
chmod -R go-w '/usr/local/share/zsh'
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
Edit file ~/.zshrc
Update theme
ZSH_THEME="agnoster"
Update plugins
plugins=(
git
dotenv
osx
docker
docker-compose
iterm2
laravel5
sublime
composer
)
Plugins
git 4
gss
:git status -s
gst
:git status
ga
:git add
gaa
:git add --all
gapa
:git add --patch
gcmsg
:git commit -m
glg
:git log --stat --max-count = 10
ggp
:git push
gl
:git pull
web-search 5
google keyword
open web page with google search
sublime 6
st
open sublimest filename
open file in sublimestt
open current in sublimesst
sudo sublime
osx 7
Command | Description |
---|---|
tab |
Open the current directory in a new tab |
split_tab |
Split the current terminal tab horizontally |
vsplit_tab |
Split the current terminal tab vertically |
ofd |
Open the current directory in a Finder window |
pfd |
Return the path of the frontmost Finder window |
pfs |
Return the current Finder selection |
cdf |
cd to the current Finder directory |
pushdf |
pushd to the current Finder directory |
quick-look |
Quick-Look a specified file |
man-preview |
Open a specified man page in Preview app |
showfiles |
Show hidden files |
hidefiles |
Hide the hidden files |
itunes |
Control iTunes. Use itunes -h for usage details |
spotify |
Control Spotify and search by artist, album, track… |
rmdsstore |
Remove .DS_Store files recursively in a directory |