Tag Archives: show current path

MacOS terminal improvements

Check which shell you use:

  echo $0

If it is bash you can continue editing bash settings:

  nano ~/.bash_profile

Add a line containing this:

  export PS1="\w\$ "

This will show you the current path in the terminal (bash).

And I like the short “ls -la” command to be set as alias “ll“, so I added also:

  alias ll="ls -la"

Remember to open new terminal window to get the new settings or execute:

  source ~/.bash_profile

That’s all for now!