Browse Source

update my_ps1_scale with stty

pull/1/head
10sr 11 years ago
parent
commit
856eac8d97
2 changed files with 12 additions and 1 deletions
  1. +4
    -1
      bashrc
  2. +8
    -0
      xinitrc

+ 4
- 1
bashrc View File

@@ -810,7 +810,10 @@ test -n "$SSH_CONNECTION" && __my_ps1_ssh_str="${__my_c5}SSH${__my_cdef} "


__my_ps1_scale(){ __my_ps1_scale(){
local last=$? local last=$?
printf "${LINES}x${COLUMNS}"
if null type stty && ! iswindows
then
stty size | tr -d $'\n' | tr " " x
fi
return $last return $last
} }




+ 8
- 0
xinitrc View File

@@ -1,7 +1,15 @@
#!/bin/sh

test -n "$DISPLAY" || return test -n "$DISPLAY" || return
test -z "$ROXTERM_PID" || return test -z "$ROXTERM_PID" || return
test -z "$SSH_CONNECTION" || return test -z "$SSH_CONNECTION" || return


case "$TERM" in
xterm*) return;;
esac

unset TMUX

setxkbmap -layout "jp" setxkbmap -layout "jp"
test "`hostname`" == "arch-aspireone" && test "`hostname`" == "arch-aspireone" &&
setxkbmap -model "acer_laptop" -layout "jp" # this line must comes first setxkbmap -model "acer_laptop" -layout "jp" # this line must comes first


Loading…
Cancel
Save