Skip to content

Latest commit

 

History

History
executable file
·
70 lines (60 loc) · 2.22 KB

Aliases.md

File metadata and controls

executable file
·
70 lines (60 loc) · 2.22 KB

Available Aliases

Folders & Finder

Alias Description
o open
oo open .
.. Go back to parent folder
cd - Go to previous opened folder
cl Open codelabs folder
w Open workspace folder
f Open finder
l List all files colorized in long format
show Show hidden files
hide Hide hidden files
cleanup Delete .DS_Store files
la To list all aliases

Utilities

Alias Description
ip Show your current ip address
sca Take screenshot of a window of your choice and Eg: sca test.png or sca test.jpg
logoff To logoff
emptytrash Empty the Trash on all mounted volumes and the main HDD
zip Create a zip
kt To kill all chrome tabs (stable & canary)
st Open sublime text editor. Eg: st . opens sublime for current directory
at Open atom editor. Eg: at . opens atom for current directory
code Open vscode editor. Eg: code . opens vscode for current directory
server Python server for current directory
update To update brew, npm, gem and their installed packages

Git Aliases

Alias Description
g Git command
s Show git status
ggpush Git push into current branch
ggpull Git pull into current branch
gf Git fetch
gc -m "My commit msg" Git commit with commit message
gco <branch-name> Git checkout to a branch
gco <file-name> Git checkout a file
ga . Git add all files
ga <file-name> Git add a file
gco - Git checkout to previous branch
gb -M <branch-name> Git create a new branch & checkout to that branch
gb -D <branch-name> Git delete a new branch
gd <file-name> Git show diff for a particular file
gd Git show diff for all the files

Z Autocompletion

Alias Description
z <folder-name> cd into your recent folders

NPM & Yarn Aliases

Alias Description
npmi NPM install
npmg NPM install globally
ya Yarn add
yad Yarn add in devDependency
yag Yarn add globally