How to fix the prompt?
Tom Mitchell
niftyubuntu at niftyegg.com
Thu Nov 10 20:25:50 UTC 2022
Also look at tmux.conf.
There is a global one and one in your home directory. ~/.tmux.conf
$ ls /usr/share/doc/tmux/
changelog.Debian.gz changelog.gz copyright example_tmux.conf
NEWS.Debian.gz README TODO.gz
On Wed, Aug 31, 2022 at 8:03 AM jian he <jian.universality at gmail.com> wrote:
>
>
> Hi there.
>
> The following script is trying to change the prompt. part of /etc/profile.
> The problem is I need to source /etc/profile every time I open a new pane in tmux.
> Is there any simple way to change the prompt permanently?
>
> if [ "${PS1-}" ]; then
> if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
> # The file bash.bashrc already sets the default PS1.
> # PS1='\h:\w\$ '
> if [ -f /etc/bash.bashrc ]; then
> . /etc/bash.bashrc
> fi
> else
> if [ "$(id -u)" -eq 0 ]; then
> PS1='# '
> else
> PS1='$ '
> fi
> fi
> fi
>
> if [ -d /etc/profile.d ]; then
> for i in /etc/profile.d/*.sh; do
> if [ -r $i ]; then
> . $i
> fi
> done
> unset i
> fi
>
> ------
> version info:
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 22.04.1 LTS
> Release: 22.04
> Codename: jammy
> -------
>
> --
> I recommend David Deutsch's <<The Beginning of Infinity>>
>
> Jian
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
More information about the ubuntu-users
mailing list