Wikipedia

Search results

24 April 2014

Creating ~/bin in OSX 10.9

Sometimes you will need to have a defined ~/bin directory for some functionalities, and Mavericks does not ship with this directory already in existence. Luckily, it is a two-step process to get things where you may need them to be. Here's what I did:
$ cd
$ mkdir bin
or you can create the directory from any location like so:
$ mkdir ~/bin

Then, in the /etc/paths file, make your system aware of the new directory by appending it to the file:

With nano
$ nano /etc/paths
in nano append to the file
~/bin
press ctrl-x, "yes", enter


With vim
$ vim /etc/paths
press "O", it will create a new line above the location of your cursor
in insert mode, append the path to the file
~/bin
press Esc, :wq, enter

No comments:

Post a Comment