-
Open up your
.bash_profile
.nano ~/.bash_profile
-
Add the following lines at the bottom of the file.
mkcd() { mkdir $1 cd $1 }
-
Reload your profile.
source ~/.bash_profile
-
Create your directory with
mkcd
.mkcd directory_name
Last active
October 30, 2017 11:17
-
-
Save GoranLilja/b5cc9639590a4a53cb4618e55446c195 to your computer and use it in GitHub Desktop.
Create directory and change to it
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment