Cheatography
https://cheatography.com
commands
find . -name 'xxx' |
find xxx file inside current directory recursively |
grep -irl 'xxx' . |
find xxx string recursively inside current directory |
vim
coq |
toggle quickfix window |
cok |
toggle location window |
cv |
replace in visual mode |
fzf & fasd
fa |
fuzzy find file/directory to edit/cd |
fas |
fuzzy find anything and list without action |
ff |
fuzzy find file and edit |
ffs |
fuzzy find file and list |
fd |
fuzzy find directory and cd |
fds |
fuzzy find directory and list |
ma |
fuzzy find most used file/directory to edit/cd |
mas |
fuzzy find most used file/directory and list without action |
mf |
fuzzy find most used file to edit |
mfs |
fuzzy find most used file and list |
md |
fuzzy find most used directory and cd |
mds |
fuzzy find most used directory and list |
|
|
git
git rebase -i <commit> |
rebase the current branch to the target branch, also used to squash commit without typing commit message again |
fasd aliases
alias a='fasd -a' |
# any |
output |
alias d='fasd -d' |
# directory |
output |
alias f='fasd -f' |
# file |
output |
alias sd='fasd -sid' |
# interactive directory selection |
search,select -> output |
alias sf='fasd -sif' |
# interactive file selection |
search,select -> output |
alias z='fasd_cd -d' |
# cd, same functionality as j in autojump |
cd |
alias zz='fasd_cd -d -i' |
# cd with interactive selection |
search, select -> cd |
fasd -i |
search and select |
fasd -s |
show scores |
fasd -si |
show scores and search select |
alias s='fasd -si' |
# show scores and search select |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets