Slackware :: Display The Full $PROMPT_COMMAND Environment Variable In The Konsole Title Bar?
Mar 18, 2011
IN 3.5.10 I am able to display the full $PROMPT_COMMAND environment variable in the Konsole title bar. Kind of handy and I did not need to display that information in the $PROMPT variable.
In 4.5.5 I am having trouble figuring out how to make that work correctly. The title bar displays only the directory name rather than the full path and user name.
This is my $PROMPT_COMMAND:
history -a;echo -ne "33]0;${USER}@`uname -n`: ${PWD}07"
All I see in the title bar is:
dirname: bash
I should see:
username@hostname: full path to present working directory
View 5 Replies
ADVERTISEMENT
Jul 25, 2010
I'm setting my CLASSPATH in /etc/profile.d/jre.sh. In a login shelleverything is fine. In an xterm window, the CLASSPATH consists of two of every intended entry.In jre.sh I am doing aCode:export CLASSPATH=$CLASSPATH:/many/paths/to/jarsSo I'm guessing this is getting run twice in the xterm case. Can someone explain what's going on here and what I should do to remedy this?
View 12 Replies
View Related
Feb 12, 2011
I am trying to patch linux kernel 2.6.24.7 with drivers for via chrome 9, by guidance of this article:[URL].. the problem appears when I run command: make xconfig I have following errors CHECK qt
[Code]...
View 2 Replies
View Related
Jun 28, 2010
How to install oracle? I have been tried many times but seems can't resolve the DISPLAY issues.
All installer requirements met.
Use the following command to view the current DISPLAY environment variable setting:
View 2 Replies
View Related
Apr 8, 2011
I use kde3.3. How could I set the title in the top of konsole terminal. for example, i would like to have the file name printed if I open the file using vi or vim.
View 4 Replies
View Related
Dec 16, 2010
When I do #./pdfedit.SlackBuil I get the information in the terminal:
[Code]...
Whether we want to checking PDFedit prepare-core-dev package ... yes Whether we want to checking build PDFedit gui ... yes configure: error: QTDIR environment variable must Be Set
View 3 Replies
View Related
Aug 21, 2010
So when I upgraded to Slack64 13.1 on my asus MB homebrewed desktop and Slack 13.1 on my compaq presario a900 laptop, I started having issues with the xterm title (in Terminal--not Konsole) being too dynamic. By "too dynamic" I mean that I can't actually change the title. The dynamic title (from my .bashrc) is basically just pwd. Whenever I try to set the title (via terminal->set title (menu)), I changes it for a split second, and then reverts back to the dynamic title.
This is merely a petty annoyance, so to get around it, I added an xtitle function that I grabed somewhere online (just echos "�33]0;$*�07"). So for nano-ing some file, I'd type:xtitle some_file.txt; nano some_file.txt
That works just fine (kind of annoying to type though). running xtitle alone won't actually change the name either though (I'm pretty sure it's the same command as what terminal does anyway). That is, running: xtitle some_file.txt
changes the title for a split second, and the reverts back to my old pwd.What I really want is to have it dynamically name it "some_file.txt" whenever I use nano, but that appears to be a functionality of zsh (with the preexec() fxn).I'm wondering if anyone else has had this problem, and if you have a fix for it.
View 3 Replies
View Related
Apr 16, 2011
I am supposed to create an environment variable with the PRINTER variable, which should resolve to the word sales. Would the command be like this?: env PRINTER - NAME=SALES (is this the command to create that variable with resolving the word sales to it?)
View 3 Replies
View Related
Apr 27, 2011
I have installed jdk in my pc, and i've set up the environment variable on the .bashrc file in my home directory although i can use java's compiler and interpreter in terminal (xfce) if i try to use these commands in konsole (kde) for some reason they don't work. do i need to edit other file?
Nevermind, i found out that konsole was being executed with -e $SHELL -l parameters, once i took them out, and just ran konsole everything worked.
View 6 Replies
View Related
Feb 8, 2011
yeah, a double negative. I want it to start out as a regular window rather than full screen.
suse 11.3, latest kernel.
View 8 Replies
View Related
Jan 18, 2010
Konsole does not respond to the following keys on my stand-along usb
keypad:
rightarrow,leftarrow,uparrow,downarrow,home,end,pageup,pagedown
Both of the other terminal emulators on slack do recognize
these keys (xterm and xfce terminal emulator).
I can also confirm that xev, if launched from konsole will recognize
these keys.
Konsole is my terminal emulator of choice and it is really nice to
be able to use my left hand for navigation and command retrieval.
Also, keypad arrows work in X apps.
View 1 Replies
View Related
Dec 26, 2010
When i ssh to server using -X, i always confuse about which display number i should export. It seems to me sometimes the display number has been used by something, so what i can do is only
export DISPLAY=localhost:0 && xclock
export DISPLAY=localhost:1 && xclock
export DISPLAY=localhost:2 && xclock
[code]....
View 1 Replies
View Related
Apr 27, 2015
I'm trying to add 2 new environment variables (Debian . I have created a "/etc/profile.d/java.sh" file and in it I have added these lines (and just for the record, I've also tried adding those line to the profile file with the same results as explained below).
Code: Select allexport XAPPLRESDIR=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/X11/app-defaults
export LD_LIBRARY_PATH=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v85/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v85/bin/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v85/sys/os/glnxa64
The first variable "XAPPLRESDIR" is added just fine (I check by doing echo $XAPPLRESDIR). The second variable is not added. Here's what I discovered though, if I change the variable name to LD_LIBRARY_PATK (I change the word "path" into something else) then it works just fine... So how am I supposed to add this variable? I need it to be named just that...
View 1 Replies
View Related
Jun 28, 2010
Well on a Rsps forum it says that the reason i keep crashing in the client is cause my Envieronment Variable isnt set for Java. i was wondering how to do this.please make it deatailed since i am new to ubuntu and i dont know most of the things like usr/java
View 9 Replies
View Related
Mar 8, 2011
how to set environment variable as i am getting following message during ./configure.
checking for GtkGLExt - version >= 1.0.0...
*** pkg-config cannot find gtkglext-1.0 >= 1.0.0
*** Set the environment variable PKG_CONFIG_PATH to point to the correct
[code]...
View 18 Replies
View Related
Apr 22, 2011
How are environment variable set in tcl? I tried "set $env(MYVAR) xxxx" but it didn't work.
View 1 Replies
View Related
Feb 4, 2010
I'm trying to set the environment variable. java_home and path.
I used the following instruction:
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.14
and to check :
echo "java_home=$JAVA_HOME"
and every thing is ok.
But since i close the terminal every thing is deleted.
View 13 Replies
View Related
Apr 17, 2011
I'm looking for the place where $HOME environment variable set. It is after login, to my mind.
I'm using Linux debian 2.6.32-5-686.
View 3 Replies
View Related
Jun 19, 2010
I'm trying to configure subclipse with JAVAHL for ganymede. I have everything installed and the right version of the JAVAHL.
I have seen that a lot of people uses java.library.path in the eclipse.ini file to set it up or just write a script for launching eclipse.
I have read about the .gnomerc file but i couldn't find it or create one and make it work. I'm using a 9.04 ubuntu.. is there anyway to configure an environment variable for gnome? What i want is just click on the shotcut and have it working, not having to run a script or all that stuff.
View 1 Replies
View Related
Oct 10, 2010
I just upgraded to 10.10, I use Tilda (terminal client) on my desktop but now when I type "clear" it says "TERM environment variable not set." instead of clearing the screen. Also commands like "tree" does not show folders and iles in color like they did before upgrading.
View 4 Replies
View Related
Oct 20, 2010
I have just installed Ubuntu onto my machine and my question is if it automatically comes with the PATH environment variable?If so, how do I add something such as python.exe to the PATH environment variable?
View 2 Replies
View Related
Dec 1, 2010
I am trying to create a launcher which runs virtual box from a custom config directory. For this I have to set an environment variable first then call VirtualBox command. From terminal it looks like:
Code:
helena@mint ~ $ export VBOX_USER_HOME=/mnt/shared/VirtualBox/
helena@mint ~ $ nohup VirtualBox > /dev/null 2> /dev/null &
If I have to create a shortcut for this, I am not sure how to define variable & call the command in a single command. There are some examples on:
[URL]
Code:
"DISPLAY=:0 xterm"
but when I try this, it wont work. My test.Desktop entry (I have started x on :1):
Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
pCode]....
View 2 Replies
View Related
Nov 23, 2009
i have to set environment variables , after the installation of intel(R)MKL for linux OS given in intel mkl user guide, which are INCLUDE, LD_LIBRARY_PATH, MANPATH,LIBRARY_PATH, CPATH, FPATH, NLSPATH using the script file which, in my case,is "mklvarsem64t.sh"How can i set these environment variables?Do i need to set all these variables?
View 2 Replies
View Related
Apr 25, 2011
set the PATH environment variable?
View 4 Replies
View Related
Jul 17, 2011
In C, there's a global variable 'environ'. With the help of linux manual, I know it's defined in <unistd.h>. But the fowllowing program is also right without <unistd.h>:
Code:
#include <stdio.h>
extern char **environ;
[code]....
View 3 Replies
View Related
Jan 6, 2010
When I put a "test" target in my Makefile containing
Code:
@echo "CXX= $(CXX)"
it tells me "CXX= g++".
But I have nothing in the Makefile assigning any value to CXX, and as far as I can tell I have no CXX environment variable (no "CXX" appears when I run the shell command "env", and "echo $CXX" returns a blank line. So where's the g++ value coming from. Is this just built into Gnu Make, or is there a configuration file for make somewhere?
View 2 Replies
View Related
Jan 24, 2011
I have been messing about with my themes lately and was wondering if it was possible to force the title of a window to display on the right side and have the buttons on the right. I'm already aware of using gconf-edit to change the order and position of the buttons but I can't seem to figure out how to move the title.
View 8 Replies
View Related
May 19, 2015
I have been trying to change my PATH environment variable to no avail. I am using Jessie i386 with MATE. Using my .bashrc file works but not well because with subshells the modifications get repeated. I want the change to occur on login.
I tried modifying ~/.profile ~/.bash_profile /etc/profile and /etc/environment and one or two others but in no case did my change get picked up even after logging out and in again and even after rebooting. I searched the Internet and found each of the above places to make the change but they don't seem to work with Jessie.
Where do I make the necessary change?
View 7 Replies
View Related
May 14, 2011
I am trying to save the PATH environment variable from the Terminal running on a Ubuntu system.I typed in the following however it does not get saved.
export PATH=/home/david/Komodo-Edit-6/bin/:$PATH
View 1 Replies
View Related
Mar 2, 2010
I am happy to say that after almost a week of wandering around the INTERNET and posting desperate questions to our Ubuntu forums on how to set paths etc., I have finally begun to understand just how environment variables and path setting works. I must say, it wasn't all reading this or that, but rather making changes to my paths that helped me to understand. Anyway, if anyone who does not understand environment variables is reading this, then I recommend reading this
HTML Code:
http://java.sun.com/docs/books/tutorial/essential/environment/paths.html
and this
HTML Code:
http://www.belugalake.com/java/pathsetting.html
OK- I have 1 last question for my fellow linux users. Lets say I opened up $HOME /.profile and did some editing, and later decided to undo all of my changes but I forgot exactly what changes I made so now I want to set the default in there. How would I accomplish this? How do I set the defaults for any ~/.bashrc or ~/.cshrc type of files that I change.
View 1 Replies
View Related