Skip to content

Commit

Permalink
Make gnu-screen work in WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
agkozak committed Dec 4, 2019
1 parent e91ee17 commit c2537c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .profile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ done

unset i


case $AGKDOT_SYSTEMINFO in
*Msys) [ -d /mingw64/bin ] && PATH="/mingw64/bin:$PATH" ;;
esac
Expand Down Expand Up @@ -124,6 +125,12 @@ case $AGKDOT_SYSTEMINFO in
*raspberrypi*)
command -v chromium-browser > /dev/null 2>&1 && BROWSER='chromium-browser'
;;
*Microsoft*) # WSL
[ ! -d "${HOME}/.screen" ] && mkdir "${HOME}/.screen" \
&& chmod 700 "${HOME}/.screen"
export SCREENDIR
SCREENDIR="${HOME}/.screen"
;;
esac

# }}}1
Expand Down
2 changes: 1 addition & 1 deletion .screenrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ shell -$SHELL
hardstatus on
hardstatus alwayslastline '%H: %-Lw%34>[%n*%f %t]%+Lw'
escape "^Qq"
termcapinfo xterm*|rxvt*|kterm*|Eterm*|putty*|dtterm* WS=\E[8;%d;%dt
# termcapinfo xterm*|rxvt*|kterm*|Eterm*|putty*|dtterm* WS=\E[8;%d;%dt
termcapinfo xterm*|rxvt*|kterm*|Eterm*|putty*|dtterm* ti@:te@:G0
termcapinfo xterm*|rxvt*|kterm*|Eterm*|putty*|dtterm* hs:ts=\E]2;:fs=\007:ds=\E]2;8)\007
termcapinfo xterm*|rxvt*|kterm*|Eterm*|putty*|dtterm* XT
Expand Down

0 comments on commit c2537c5

Please sign in to comment.