my_cheatsheet Cheat Sheet

A Software › Linux cheat sheet in English by hatelove
7,541 views 1,757 downloads 4 Jan 2017 History
3.7 avg · 0 ratings

commands

find . -name '­xxx­'
find xxx file inside current directory recurs­ively
grep -irl '­xxx­' .
find xxx string recurs­ively inside current directory

vim

coq
toggle quickfix window
cok
toggle location window
cv
replace in visual mode

fzf & fasd

fa
fuzzy find file/d­ire­ctory 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/d­ire­ctory to edit/cd
mas
fuzzy find most used file/d­ire­ctory 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

fugitive

 

git

git rebase -i <co­mmi­t>
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'
# intera­ctive directory selection
search­,select -> output
alias sf='fasd -sif'
# intera­ctive file selection
search­,select -> output
alias z='f­asd_cd -d'
# cd, same functi­onality as j in autojump
cd
alias zz='­fasd_cd -d -i'
# cd with intera­ctive 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

Badges

Nice Cheat Sheet Good Cheat Sheet Downloaded from Unusual Locations × 3

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.