forked from ohmyzsh/ohmyzsh
-
Notifications
You must be signed in to change notification settings - Fork 110
Cheatsheet
Philipp Rieber edited this page Mar 30, 2015
·
28 revisions
To try it out if you have just cloned it (to your home directory):
source ~/.oh-my-zsh/templates/zshrc.zsh-template
-
tab
- 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. -
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 ten 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
-
alias
lists all aliases -
..
aliasescd ..
-
...
aliasescd ../..
-
....
aliasescd ../../..
-
.....
aliasescd ../../../..
-
/
aliasescd /
-
cd +n
to switch to directory numbern
-
1
aliasescd -
-
2
aliasescd +2
-
3
aliasescd +3
-
4
aliasescd +4
-
5
aliasescd +5
-
6
aliasescd +6
-
7
aliasescd +7
-
8
aliasescd +8
-
9
aliasescd +9
-
md
aliasesmkdir -p
-
rd
aliasesrmdir
-
d
aliasesdirs -v
, lists last used directories
-
ls -(tab)
- For options and helpful text of what they do cap (tab)
rake (tab)
ssh (tab)
sudo umount (tab)
kill (tab)
unrar (tab)
git pull origin $(current_branch)
grb publish $(current_branch) origin
-
g
-git
-
gst
-git status
-
gl
-git pull
-
gup
-git pull --rebase
-
gp
-git push
-
gd
-git diff
-
gdc
-git diff --cached
-
gdv
-git diff -w "$@" | view -
-
gc
-git commit -v
-
gc!
-git commit -v --amend
-
gca
-git commit -v -a
-
gca!
-git commit -v -a --amend
-
gcmsg
-git commit -m
-
gco
-git checkout
-
gcm
-git checkout master
-
gr
-git remote
-
grv
-git remote -v
-
grmv
-git remote rename
-
grrm
-git remote remove
-
gsetr
-git remote set-url
-
grup
-git remote update
-
grbi
-git rebase -i
-
grbc
-git rebase --continue
-
grba
-git rebase --abort
-
gb
-git branch
-
gba
-git branch -a
-
gcount
-git shortlog -sn
-
gcl
-git config --list
-
gcp
-git cherry-pick
-
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
-
gss
-git status -s
-
ga
-git add
-
gm
-git merge
-
grh
-git reset HEAD
-
grhh
-git reset HEAD --hard
-
gclean
-git reset --hard && git clean -dfx
-
gwc
-git whatchanged -p --abbrev-commit --pretty=medium
-
gsts
-git stash show --text
-
gsta
-git stash
-
gstp
-git stash pop
-
gstd
-git stash drop
-
ggpull
-git pull origin $(current_branch)
-
ggpur
-git pull --rebase origin $(current_branch)
-
ggpush
-git push origin $(current_branch)
-
ggpnp
-git pull origin $(current_branch) && git push origin $(current_branch)
-
glp
-_git_log_prettily
You also find these commands in Dash as a Cheat-sheet.
-
stt
-open current directory in Sublime Text 2/3
-
v
- When usingvi-mode
plugin: Edit current command line in Vim
-
sf
-php ./app/console
-
sfcl
-php app/console cache:clear
-
sfcontainer
-sf container:debug
-
sfcw
-sf cache:warmup
-
sfgb
-sf generate:bundle
-
sfroute
-sf router:debug
-
sfsr
-sf server:run -vvv
-
sc-status NAME
-show the status of the NAME process
-
sc-show NAME
-show the NAME systemd .service file
-
sc-start NAME
-start the NAME process
-
sc-stop NAME
-stop the NAME process
-
sc-restart NAME
-restart the NAME process
-
sc-enable NAME
-enable the NAME process to start at boot
-
sc-disable NAME
-disable the NAME process at boot