diff --git a/zsh.d/50_reset.zsh b/zsh.d/50_reset.zsh new file mode 100644 index 0000000..c117300 --- /dev/null +++ b/zsh.d/50_reset.zsh @@ -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 "c" which is VT100 code for resetting terminal +alias reset='echo -e "\e<"; reset; stty sane; setterm -reset; tput reset; clear; echo -e "\033c"' diff --git a/zshrc b/zshrc index fab803b..8d840de 100644 --- a/zshrc +++ b/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 "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'