Useful Shell Resources
TTY Sanitization
#For setting the terminal colors
export TERM=xterm-256color
source /etc/skel/.bashrc
#If the last does not work, try with the following
export PS1="\[\e[32m\]\u@\h:\[\e[0m\]\w\$ "
#For setting the proper size
stty size #This is on our local machine to know the number of rows and columns
stty rows $rows columns $columns #This is on the SSH connection with the row and column values of our machine#For obtaining a bash
script /dev/null -c bash
#If the last does not work, try with the following
python -c 'import pty;pty.spawn("/bin/bash")'
#For fixing the keybinding
^Z #This refers to making CTRL+Z. It will send the process to the background
stty raw -echo; fg
reset xterm # On some occasions, this will not be visible, but still write it
export SHELL=bash #To ensure the commands will be interpreted correctly
#For setting the terminal colors
export TERM=xterm-256color
source /etc/skel/.bashrc
#If the last does not work, try with the following
export PS1="\[\e[32m\]\u@\h:\[\e[0m\]\w\$ "
#For setting the proper size
stty size #This is on our local machine to know the number of rows and columns
stty rows $rows columns $columns #This is on the remote connection with the row and column values of our machineCorrupt history of zsh
Last updated