Is it possible to insert a separator after the command in a prompt? This is an example:~/Desktop: ls -al-------------------------------------total 80drwx------+  6 eddie  staff   204B Apr 29 16:57 .drwxr-xr-x+ 54 eddie  staff   1.8K Apr 30 10:54 ..~/Desktop:Specifically I want to add the --------- part after issuing a command to easier distinguish the command from the result
Wrap command in the prompt
bash;zsh;prompt
In zsh, you can define the hook function preexec to echo a specified string before every command is executed.In bash, you could use the DEBUG trap to set up a preexec hook to do the same.You would define a preexec() function something like this:preexec () { echo -------------------------------; }preexec_invoke_exec () {    [ -n $COMP_LINE ] && return  # do nothing if completing    preexec}trap 'preexec_invoke_exec' DEBUGSee more details at Does bash have a hook that is run before executing a command?I don't think this works in all versions of bash though. On my old Ubuntu server, running bash 3.2.39(1), help trap saysIf a SIGNAL_SPEC is DEBUG, ARG is executed after every simple  command.On another server, running bash 4.1.2(1), it saysIf a SIGNAL_SPEC is DEBUG, ARG is executed before every simple command.which is what we need.So make sure that in your version of bash, help trap says before every simple command.