1
vote
0answers
20 views

Path slashes disappear on coloured bash prompt

So in my .bashrc, I set my prompt to be colourful by setting PS1 to \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ For some ...
0
votes
0answers
210 views

Why gnome-terminal does not show prompt in vnc running on a guest in kvm?

I use KVM to host vm (ubuntu). Then I started vnc4server on the vm. The content of ~/.vnc/xstartup is shown below. gnome-terminal in vnc does not show the prompt and doesn't accept any keyboard ...
2
votes
1answer
319 views

gnome-terminal - color palette

I'm trying to assign color palette on my gnome-terminal but it doesn't change at all... any clue? Screenshot > http://i.imgur.com/MXXhoOo.jpg Aditional info: Fedora 18 64bits (shiny new) GNOME ...
0
votes
0answers
11 views

Going back to a stopped job [duplicate]

wim@wim-zenbook:~$ ipython Python 2.7.4 (default, Apr 19 2013, 18:28:01) Type "copyright", "credits" or "license" for more information. IPython 0.13.2 -- An enhanced Interactive Python. ? ...
0
votes
1answer
168 views

Cannot get Vim to remap CTRL+S to `:w`

I've been trying to get Vim to remap CTRL+S (or ^S) to :w by editing my .vimrc file, however it doesn't work. This is my current ~/.vimrc configuration: nmap <c-s> :w<CR> imap ...
0
votes
1answer
426 views

Mouse right-click menu in RXVT

I moved from gnome-terminal to urxvt. I am used to having a right-click menu in gnome-terminal. Do such menus exist in urxvt?
2
votes
2answers
438 views

Redirect output of gnome-terminal to file

I have written a script which opens a new terminal using gnome-terminal. The output shown on gnome-terminal is correct. I want this output should be in some file. I have tried this: gnome-terminal ...
3
votes
1answer
526 views

How do I edit previous lines in a multiple line command in GNOME Terminal?

When entering a command which spans multiple lines in Bash, how do I edit previous lines? I'm a Linux Mint (Lisa) user using GNOME Terminal. For example, let's say I type: $ echo "foo bar > baz ...
4
votes
3answers
4k views

Gnome: Change title of current terminal from bash command line

I know there are options to start a new terminal with a specified title, and that is is possible to change the title from a terminal using the menu: 'Terminal' -> Set Title. However, I want to change ...
1
vote
2answers
290 views

When I paste a command on my bash prompt it is not in history — how can I add it?

When I paste a command to my OS X or Ubuntu bash prompt using CmdV, the command is not in history – even if it is executed. The command is in history only if I type it. How to enable that pasted ...
0
votes
0answers
205 views

define $HOME variable in gnome-terminal profile (for bash)

How do I do this. I've tried setting this in a script and in the "command" to run at launch in gnome-terminal profile preferences. Additionally, there is a full set of .bashrc .*rc files in the new ...
8
votes
1answer
2k views

How to make mouse wheel scroll the less pager using bash and gnome-terminal?

I have two computers with the latest Fedora. On the first, I'm using zsh and the mouse wheel can be used with the less pager within gnome-terminal to scroll the pager. On the second, I use bash and ...
8
votes
2answers
937 views

indistinguishable active tab in gnome terminal

I am running Gnome 2.30.2 and Gnome Terminal 3.0.1 on my Debian Sid and recently the active tab became almost indistinguishable from other tabs. It is actually the same colour. Changing the themes ...
5
votes
3answers
336 views

How do I detect when I a terminal gets focus in Linux?

I want to be able to time how long I spend in front of a terminal. I'm thinking the best way will be to have some sort of timer that starts and stops when the terminal gains/loses focus. And it will ...
2
votes
1answer
919 views

screenrc: How to map “alt+number” to “select a screen window” in gnome terminal

I found this online: bindkey "\261" select 1 bindkey "\262" select 2 bindkey "\263" select 3 .... Basically it maps alt+1 to "select 1"; alt+2 to "select 2". So when you press alt+1, it is ...
1
vote
1answer
96 views

Default folder from which commands execute

Once I upgraded to Maverick Ubuntu, bash shell in gnome-terminal starts by default at root rather than my home directory, this was easily fixable by adding a cd command in .bashrc. However, this is ...
3
votes
1answer
505 views

gnome-terminal/bash: How to cancel inserted commands that will be executed later?

$ execute_some_long_command <command is executing> <Accidently press middle button that inserts bunch of garbage (including, for example, `rm -Rf ~/*`) into console> How to let ...
6
votes
3answers
429 views

Portable method of opening a new terminal window?

So, I'm working on a custom makefile script (for TinyOS, if anyone cares) that builds a file and then runs it in a simulator. The problem is that the simulator takes it's input from standard in, and ...
0
votes
1answer
448 views

Duplicate a tab in gnome-terminal

When working with gnome-terminal, I found that I often want to open a second copy of a tab: e.g. during a ssh session, I may need a second session at the same host and same remote path; or a second mc ...
2
votes
1answer
316 views

How can I minimise my Bash shell prompt?

Currently the terminal prompt looks like this: [karlis@karlis-desktop current_folder]$ How can I minimize the prompt, so that it only shows $ or # without extra info in square brackets? I checked ...
9
votes
2answers
15k views

Open gnome terminal programmatically and execute commands after bashrc was executed

For starting my dev environment I wrote a little script. One part is to open a gnome terminal with several tabs where automatically some commands should be executed. Some of those commands depend on ...
3
votes
2answers
516 views

gnome-terminal: how to preserve symlinks of working directory when opening new tab?

If I'm using gnome-terminal in a working directory whose path includes symlinks and I open a new tab, the symlinks will be expanded to their destinations in the working directory of the new tab. Is ...
10
votes
1answer
1k views

Why does vim delay for a second whenever I use the 'O' command (open a new line above and insert)?

When I use most commands, they take effect instantly. When I use the O command, however, I see the "O" replace the current character for a about a second, then the current character returns, and a new ...
3
votes
1answer
340 views

Bash Alias to perform Alt+1?

Using Ubuntu I can create a terminal with two tabs: gnome-terminal --tab --tab However, by default it goes to the last created tab. Using Alt + 1 I can make it go to the first, but I want to avoid ...
0
votes
1answer
388 views

How do I keep gnome-terminal width from changing when I use “reset”

When I use reset in gnome-terminal (bash, Ubuntu 9.04), the window width resets, though the height does not. On my personal computer, this does not happen in xterm or konsole. On my work computer ...
2
votes
2answers
817 views

Shortcut for reset on bash

I seem to be entering reset command on bash way too often. I want to configure it to a keyboard shortcut. Say Ctrl+r or something like that. How to do it. Update: To answer the question, why I ...