Move reset to partial

This commit is contained in:
Paweł Płazieński 2024-03-03 12:58:00 +01:00
parent 1220ed27e0
commit b7d2c76aba
2 changed files with 9 additions and 10 deletions

9
zsh.d/50_reset.zsh Normal file
View File

@ -0,0 +1,9 @@
# More powerful terminal reset
# \e< - resets \e[?2l which puts terminal into VT52 mode
# reset - normal terminal reset
# stty sane - puts tty in sane state (like accepting input, no character translation etc.)
# setterm -reset - puts reset terminal string, as identified by setterm
# tput reset - puts terminal reset strings from terminfo
# clear - simple clear terminal window
# \033c - exactly "<ESC>c" which is VT100 code for resetting terminal
alias reset='echo -e "\e<"; reset; stty sane; setterm -reset; tput reset; clear; echo -e "\033c"'

10
zshrc
View File

@ -167,16 +167,6 @@ alias su="sudo -u root -i"
# disable sudo correction for commands
alias sudo="nocorrect sudo"
# More powerful terminal reset
# \e< - resets \e[?2l which puts terminal into VT52 mode
# reset - normal terminal reset
# stty sane - puts tty in sane state (like accepting input, no character translation etc.)
# setterm -reset - puts reset terminal string, as identified by setterm
# tput reset - puts terminal reset strings from terminfo
# clear - simple clear terminal window
# \033c - exactly "<ESC>c" which is VT100 code for resetting terminal
alias reset='echo -e "\e<"; reset; stty sane; setterm -reset; tput reset; clear; echo -e "\033c"'
# Shortcuts for clipboard manipulation
alias xclip-in='xclip -selection c -in'
alias xclip-out='xclip -selection c -out'