Skip to content

Commit

Permalink
toggle linewrap in shell
Browse files Browse the repository at this point in the history
  • Loading branch information
neeasade committed Oct 16, 2017
1 parent ca0c039 commit 6245e55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shell/.sh.d/functions
Expand Up @@ -23,6 +23,10 @@ defaulttitle() {
settitle "$(basename $SHELL) - $(echo $TERM | sed 's/-.*//')"
}

linewrap() {
${1:-true} && echo $'\e[?7h' || echo $'\e[?7l'
}

cursorStyle() {
[ "$TERM" = "linux" ] && return
[ "$TERM" = "eterm-color" ] && return
Expand Down

0 comments on commit 6245e55

Please sign in to comment.