Tuesday, April 19, 2016

how to config alias in mac

我们有一些经常用功能和工具,我们需要配置 一下,方便我们快捷的使用。

语言这种东西,是很完美的,主要的作用就是,让我们生活的更好。

如何配置?  Mac

open teminal  or iterm

cd ~

vim .bash_profile

if file doesn't exits, You can use this command:
touch .bash_profile

click    i

input

alias    github="cd  ~/document/  you want to go to"        no  black space in  "="


Alter all :

You should reload the file use this comand:

source .bash_profile


OK

you in items input

github   you just input github dir~  so fast!


My  shill will change mylife!







No comments:

Post a Comment