Showing posts with label osx. Show all posts
Showing posts with label osx. Show all posts

Friday, July 24, 2015

Remove everything from the terminal prompt except for the current directory

You can remove everything from the terminal prompt except for the current directory if you append the following code into ~/.bash_profile.
export PS1="\W\$ "

Wednesday, April 22, 2015

wget: Download files with certain extension only

To download only files of type pdf from example.com,
wget -r --no-parent --accept "*.pdf" --level 2 http://example.com/