Open bmmpp opened 3 months ago
when cd /folder/folder/folder, the full path will show, how to setting show target folder instead of full path ? e.g.
$root@Jan-pc:~# cd /usr/local/sbin $root@Jan-pc:/usr/local/sbin#
expected it show below: $root@Jan-pc: sbin#
if show full path it will longer and longer
You should change your setting in file ".bashrc", find the line where PS1 is set and change "w" to "W"
when cd /folder/folder/folder, the full path will show, how to setting show target folder instead of full path ? e.g.
$root@Jan-pc:~# cd /usr/local/sbin $root@Jan-pc:/usr/local/sbin#
expected it show below: $root@Jan-pc: sbin#
if show full path it will longer and longer