SliTaz SliTaz Forum

You are not logged in.

#1 2015-03-19 18:02:22

llev
Member
Registered: 2011-12-09
Posts: 568

Patches to: bashrc, xterm.desktop

/etc/bashrc exports PS1, but this is a shell parameter, not an environment variable. This "bug" is harmless, I post a patch just for the sake of correctness.

[c]--- bashrc.old  2015-03-13 23:03:12.161160999 +0100
+++ bashrc.new  2015-03-19 17:56:42.495295025 +0100
@@ -14,5 +14,3 @@
        # Colored prompt
        PS1="\[\e[34;1m\]\u@\[\e[32;1m\]\h:\w\[\e[0m\] $ "
fi
-
-export PS1[/c]

Offline

#2 2015-03-19 18:04:36

llev
Member
Registered: 2011-12-09
Posts: 568

Re: Patches to: bashrc, xterm.desktop

xterm.desktop launches an xterm with a login shell. I don't think it's what is intended: a login bash e.g. doesn't source bashrc, which is silly for an X terminal emulator.

[c]--- xterm.desktop.old   2015-03-19 17:54:59.798242761 +0100
+++ xterm.desktop.new   2015-03-19 17:55:22.093076319 +0100
@@ -3,6 +3,6 @@
Name=XTerm Terminal
Name[fr]=Terminal Xterm
Name[ru]=Терминал XTerm
-Exec=xterm -ls
+Exec=xterm
Icon=xterm
Categories=System;TerminalEmulator;[/c]

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.52 MiB (Peak: 1.77 MiB) ]