Move reset to partial
This commit is contained in:
parent
1220ed27e0
commit
b7d2c76aba
9
zsh.d/50_reset.zsh
Normal file
9
zsh.d/50_reset.zsh
Normal 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
10
zshrc
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user