run command via ps/bash prompt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Have something I have tried to get working, unsuccessfully:

PS1="\n\[`cat $HOME/file.txt`\] \n \@ \u@\h \w $ "

Basically, wanting the bash prompt to always execute a command. It does not update, unless bashrc is updated with source .bashrc. Is there any way around this directly in the PS1 settings? If not, I saw more complex ways to do similar things by defining functions, but was curious if there was a more basic way to do this.

Regards,
Joe






[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux