Enhance the Synology DiskStation command prompt

synology_diskstationThe code snippet below adds a username, hostname and cwd (current working directory) to your prompt on the DiskStation:

PS1="`whoami`@`hostname | sed 's/\..*//'`:\w"
case `id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac
Share

Leave a Reply

Your email address will not be published. Required fields are marked *