Command |
Description |
tabs |
Create a new tab in the current directory (OS X - req enabling access for assistive devices under sys prefs). |
take |
Create a new directory and change to it, will create intermediate directories as required. Like mcd command |
x / extract |
Extract an archive (supported types: tar.{bz2,gz,xz,lzma}, bz2, rar, gz, tar, tbz2, tgz, zip, Z, 7z). |
zsh_stats |
Get a list of the top 20 commands and how many times they have been run. |
uninstall_oh_my_zsh |
Uninstall Oh-my-zsh. |
upgrade_oh_my_zsh |
Upgrade Oh-my-zsh. |
zsh_stats |
zsh command stats. |
open_command |
open command in window cygwin cygstart , in darwin open , in linux xdg-open |
Dynamic access to current branch name with the current_branch function |
git pull origin $(current_branch) |
grb publish $(current_branch) origin |
Alias |
Command |
g |
git |
ga |
git add |
gaa |
git add --all |
gc |
git commit -v |
gc! |
git commit -v --amend |
gca |
git commit -v -a |
gca! |
git commit -v -a --amend |
gclean |
git clean -fd |
gpristine |
git reset --hard && git clean -dfx |
gcmsg |
git commit -m |
gd |
git diff |
gdca |
git diff --cached |
gdt |
git diff-tree --no-commit-id --name-only -r |
gg |
git gui citool |
gga |
git gui citool --amend |
ggpnp |
git pull origin $(current_branch) && git push origin $(current_branch) |
ggl |
git pull origin $(current_branch) |
ggp |
git push origin $(current_branch) |
gignore |
git update-index --assume-unchanged |
gignored |
git ls-files -v | grep "^[[:lower:]]" |
gl |
git pull |
glg |
git log --stat --max-count = 10 |
glgg |
git log --graph --max-count = 10 |
glgga |
git log --graph --decorate --all |
glo |
git log --oneline --decorate --color |
glog |
git log --oneline --decorate --color --graph |
gp |
git push |
gss |
git status -s |
gst |
git status |
gunignore |
git update-index --no-assume-unchanged |
gunwip |
git log -n 1 | grep -q -c "--wip--" && git reset HEAD~1 |
gup |
git pull --rebase |
See all alias just run alias
.
Alias |
Description |
"_" |
alias for sudo |
Alias |
Command |
stt |
(When using sublime plugin) Open current directory in Sublime Text 2/3 |
v |
(When using vi-mode plugin) Edit current command line in Vim |
Command |
Description |
pfd |
Print frontest directory, Return the path of the frontmost Finder window |
pfs |
Print frontest selection, Return the current Finder selection |
ofd |
Open frontest directory, Open the current directory in a Finder window |
cdf |
cd to the current Finder directory |
pushdf |
pushd to the current Finder directory |
tab |
Open the current directory in a new tab |
quick-look |
Quick-Look a specified file |
man-preview |
Open a specified man page in Preview app |
/etc/zshenv
Always run for every zsh.
~/.zshenv
Usually run for every zsh (see below).
/etc/zprofile
Run for login shells.
~/.zprofile
Run for login shells.
/etc/zshrc
Run for interactive shells.
~/.zshrc
Run for interactive shells.
/etc/zlogin
Run for login shells.
~/.zlogin
Run for login shells.
http://zsh.sourceforge.net/Guide/zshguide02.html