Tag Info

New answers tagged

2

The .inputrc file is not a file to be sourced. It should be taken into account automatically by bash or other software using the readline library. If this doesn't work, add a space after the colon, e.g. "\e[1;5C": forward-word (I've always seen a space in this config file).


5

If using bash, the following should do the trick: TOLASTLINE=$(tput cup "$LINES") PS1="\[$TOLASTLINE\]$PS1" Or (less efficient as it runs one tput command before each prompt, but works after the terminal window has been resized): PS1='\[$(tput cup "$LINES")\]'$PS1 Since most terminals cup capability is the same \e[y;xH, you could also hardcode it: ...


1

If you know you're going to want to do this in advance ... Create a script session on your home computer (using -f to flush buffer): script -f output.txt rsync -vr /media/master /media/slave (Ctrl+D to finish the script session when get home) At work you can track output.txt: tail -f output.txt


1

Try moving [[ $TERM != "screen" ]] && exec tmux to your .zshrc file. That way the command will only be run in interactive shells. An interactive shell is simply any shell process that you use to type commands, and get back output from those commands. That is, a shell with which you interact.


0

Try adding this (from /etc/screenrc) to your ~/.screenrc: # Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E> # (This fixes the "Aborted because of window size change" konsole symptoms found # in bug #134198) termcapinfo xterm* 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' http://superuser.com/a/217281/6593


2

Rather obviously, in the end it's always you who have to know what commands you are putting into which terminal. Now, you can do several things to distinguish the sessions: use different colours of the terminals (this includes background colours). One way to achieve this is to make the terminal use a specific background however, it is more flexible to ...


4

I use different background colors for different environments: production: red - think before you hit enter testing: yellow - sure you want to do that? dev: green - feel free to go crazy Another must-have are different prompts, a good idea would be to include the hostname.


0

Debian 7 default shell is dash, so you can not get some features that bash provides. You can change DSHELL config in /etc/adduser.conf to change user default shell when using adduser: # The DSHELL variable specifies the default login shell on your # system. DSHELL=/bin/bash If ...


1

I just found an answer, the new created user was having /bin/sh instead of /bin/bash. So I did : sudo chsh -s /bin/bash my_new_user


1

What to do? You shouldn't use sudo for graphical applications, such as gedit. Use gksudo instead. What's causing the error I'm not sure. Apparently, the reason of error you get is that gedit is trying to invoke SessionManager's Inhibit method via D-bus. If normal applications can connect to dbus, they should have some config files in /usr/share/dbus-1. ...


1

i use the default terminal in ubuntu 14 (bash) and to scroll by page it is SHIFT + PAGEUP or SHIFT + PAGEDOWN to go up/down a whole page or CONTROL + SHIFT + UP or CONTROL + SHIFT + DOWN to go up/down by line.


0

Here is what I had to do in my .bashrc export PS1="\\n[\\!. \\t - \\w]\\n>" set_title() { PROMPT_COMMAND='echo -ne "\033]0;'$1'\007"' } I found this answer useful.


0

After following a link in a comment from @Braiam in the question's comments, it seems I have found at least one alternative. rxvt-unicode (sometimes called urxvt based on its utility name) has this feature. However, as a lightweight terminal for X, it seems to have relatively few default UI features compared to alternatives like Gnome terminal. Also, as an ...


0

apt-get will complain if you run it from a script. Try with: export DEBIAN_FRONTEND=noninteractive sudo add-apt-repository ppa:webupd8team/y-ppa-manager sudo apt-get -q -y update sudo apt-get -q -y install yad


1

I've experienced this a lot in Oracle pl/sql. Trying installing and using rlwrap and see if it helps: http://linux.die.net/man/1/rlwrap


1

Does Ctrl+Alt+F2 not switch you to another console? As I understand it that shouldn't depend on X. (I'd go with tmux, really, as it works over SSH, supports split-screen, etc, but Ctrl+Alt+F1/Ctrl+Alt+F2/etc has the advantage of no tmux dependency.)


1

Terminals didn't all have the same aspect ratio and didn't all have square pixels. So if you pick the aspect ratio of one model, it won't match other models. The popular VT220 had a 8x10 character cell. The earlier VT05 had a 8¾" × 6⅝" display area, and a 72x20 size, and a 5x7 character cell. The site vt100 has a lot of manuals of DEC text terminals, you ...


4

You can install kmscon which implements kernel mode setting graphics handling in the console. Its developer - David Herrman - is the party in large part responsible for systemd's multiseat session handling, and this functionality is provided in his own kmscon package. He's also largely responsible for wlterm and similar multiseeat session handling in wayland ...


10

Check out tmux and/or screen. A comparison of the two programs which satisfy essentially the same needs can be found on the tmux FAQ. A very good blog post for getting started with tmux is at Hawk Host: TMUX the terminal multiplexer part 1 and part 2. If you want to know more about tmux's versatility, there's a nice book/e-book that covers a lot of ground ...


4

You can run screen from a console. It will provide multiple terminals. You can even split the screen to see more than one terminal at once. Some of the relevant screen commands are: C-a c C-a C-c (screen) Create a new window with a shell and switch to that window. C-a Q (only) Delete all regions but the current one. See ...


0

As per suggested link of @jasonwryan, I created following script to solve my problem; cd dir1 tmux new-window -a -n WinSplit tmux new-session -d -s WinSplit tmux selectp -t WinSplit tmux split-window -v cd dir2 tmux select-pane -U tmux split-window -h cd dir3 tmux split-window -v #tmux select-layout even-vertical tmux attach -t WinSplit tmux bind -n M-Left ...


0

One solution is to change the terminal variable to vt100 before ssh'ing, e.g. run export TERM=vt100 This works because usually initialization scripts look at the terminal variable and only change it title it it's xterm. You lose alternate screens, colors and maybe some other fancy features you may or may not appreciate. If you want to keep the local ...



Top 50 recent answers are included