PROMPT_COMMAND='RET=$?'If if its within a terminal window, you'll see the path you're in in the task- or titlebar.
RET_VAL="$(echo $RET)"
export PS1="$RET_VAL \\$ "
If you really want to have the path in your shell, try this line:
export PS1="$RET_VALUE \W \\$ "
Hope you enjoy and have fun!
Keine Kommentare:
Kommentar veröffentlichen