The i3 FAQ has migrated to https://www.reddit.com/r/i3wm/. All content here is read-only.
Ask Your Question
1

Is dmenu messing with PS1?

asked 2015-02-13 22:51:12 +0000

Nikolaus Rath gravatar image

updated 2015-02-13 23:00:27 +0000

It seems that if I start a process with i3-msg "exec blabla", PS1 has the value from /etc/profile. However, if I start the process via dmenu (i3-msg "exec dmenu_run", and then type blabla into the dmenu prompt), PS1 is set to a mere \s-\v\$.

Why is that? I grepped for PS1 in the dmenu sources, but could not find anything.

(When trying to reproduce any of this, make sure to completely terminate your terminal emulator, so that i3-sensible-terminal is actually starting a new terminal and not just telling an existing terminal process to open another window).

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-14 02:43:32 +0000

lasers gravatar image

Does 'less $(which dmenu_run)' answer your question?

edit flag offensive delete link more

Comments

No, unfortunately it doesn't. Can you elaborate?

Nikolaus Rath gravatar imageNikolaus Rath ( 2015-02-16 17:06:33 +0000 )edit

It was just a question because I can't reproduce your problem and if I run sh in the terminal, I will get sh-4.3$ and I knew about the sh part in dmenu_run -- I was wondering if that was the culprit/answer to your question.

lasers gravatar imagelasers ( 2015-02-17 01:29:11 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2015-02-13 22:51:12 +0000

Seen: 104 times

Last updated: Feb 14