-
Notifications
You must be signed in to change notification settings - Fork 0
Terminal (emulator)
GradedJestRisk edited this page Jul 11, 2021
·
8 revisions
It emulates a video terminal.
List:
- get current terminal:
ps -p $(ps -p $$ -o ppid=) o args=
- gnome:
gnome-terminal
- terminator:
terminator
- XFCE:
xfce4-terminal
- gnome:
- set default terminal:
sudo update-alternatives --config x-terminal-emulator
- GNOME terminal (default on Ubuntu)
- Terminator
- ITerm on Mac
- terminal emulator Full list here
List:
- new terminal: Ctrl Alt T
- new tab: Ctrl Shift T
- focus on tab: Ctrl PageUp/Down
- focus on tab: Alt (to get N, you'll need Shift)
- close tab: Ctrl Shift W
- copy: Shift Ctrl C or mouse selection
- paste: Shift Ctrl C or mouse middle button
Config file: /home/<USER>/.config/terminator
List:
- New terminal: Ctrl Alt T
- New terminal tab: Ctrl Shift T
- Focus on tab: Ctrl PageUp/Down
- vertical: Ctrl Shift E
- horizontal: Ctrl Shift O
- navigate: Alt + Arrows
List:
- infinite scrollback:
[[default]] scrollback_infinite = True
Create layout using yaml here
Create a layout with custom command, then
- to launch it, run terminator -l <LAYOUT_NAME>
- set it as the default layout
If you need to interrupt custom command without closing the terminal, see here
Add to zshrc
echo $INIT_CMD if [ ! -z "$INIT_CMD" ]; then OLD_IFS=$IFS setopt shwordsplit IFS=';' for cmd in $INIT_CMD; do print -s "$cmd" # add to history eval $cmd done unset INIT_CMD IFS=$OLD_IFS fi
Change your custom command to
env INIT_CMD="put your command here" zsh