Skip to content

Instantly share code, notes, and snippets.

@alexandregz
Last active May 27, 2016 22:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandregz/e7be9e6a84a1d2c20f94 to your computer and use it in GitHub Desktop.
Save alexandregz/e7be9e6a84a1d2c20f94 to your computer and use it in GitHub Desktop.
to add to .profile (ash shell used with Synology NAS)
# place to git, ipkg, another shell commands
PATH=/volume1/@optware/bin:$PATH
export PATH
# more useful prompt shell
#PS1="`hostname`> "
PS1='\u@\h:\w'
case `id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac
@atwright147
Copy link

Explanation of how to edit the .profile (taken from an old version of this Gist):
http://blog.arinium.fi/2012/09/howto-working-directory-in-synology-ds211j-shell-prompt/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment