From b5278ed52aadde0d8566851af57ea5f09595badb Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 1 Dec 2013 01:41:05 +0900 Subject: [PATCH] add new lines so that columns do not exceed 80 --- shrc | 19 ++++++++++++------- vimrc | 6 ++++-- xinitrc | 3 ++- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/shrc b/shrc index 742166d..4c9c5d4 100755 --- a/shrc +++ b/shrc @@ -318,10 +318,12 @@ __safe_alias sudoe="sudoedit" # __safe_alias halt="sudo halt" # __safe_alias reboot="sudo reboot" null type dbus-send && { - alias suspend="dbus-send --system --print-reply --dest=org.freedesktop.UPower \ - /org/freedesktop/UPower org.freedesktop.UPower.Suspend" - alias hibernate="dbus-send --system --print-reply --dest=org.freedesktop.UPower \ - /org/freedesktop/UPower org.freedesktop.UPower.Hibernate" + alias suspend="dbus-send --system --print-reply \ + --dest=org.freedesktop.UPower \ + /org/freedesktop/UPower org.freedesktop.UPower.Suspend" + alias hibernate="dbus-send --system --print-reply \ + --dest=org.freedesktop.UPower \ + /org/freedesktop/UPower org.freedesktop.UPower.Hibernate" } alias rand="echo \$RANDOM" __safe_alias xunp="file-roller -h" @@ -1042,11 +1044,14 @@ ipaddress(){ __my_ps1_str="" -test -n "$__MY_SCRIPT" && __my_ps1_str="${__my_ps1_str}${__my_c5}SCR${__my_cdef} " +test -n "$__MY_SCRIPT" && \ + __my_ps1_str="${__my_ps1_str}${__my_c5}SCR${__my_cdef} " -test -n "$SSH_CONNECTION" && __my_ps1_str="${__my_ps1_str}${__my_c5}SSH${__my_cdef} " +test -n "$SSH_CONNECTION" && \ + __my_ps1_str="${__my_ps1_str}${__my_c5}SSH${__my_cdef} " -test -n "$__MY_DTACH" && __my_ps1_str="${__my_ps1_str}${__my_c5}DTACH${__my_cdef} " +test -n "$__MY_DTACH" && \ + __my_ps1_str="${__my_ps1_str}${__my_c5}DTACH${__my_cdef} " __my_ps1_scale(){ if null type stty && ! $ismsys diff --git a/vimrc b/vimrc index c011595..a94e68e 100644 --- a/vimrc +++ b/vimrc @@ -21,7 +21,8 @@ set viminfo+=n~/.vim/viminfo " viminfo set wildmode=longest,list,full set hidden " can switch to another buffer even when editting a file "set backspace=indent,eol,start " backspace can erase these things -"set autochdir " automatically change current dir according to current file. cant use with mac +" automatically change current dir according to current file. cant use with mac +"set autochdir set mouse=h " do not use mouse set clipboard+=unnamed " use x clipboard, seems not to work set browsedir=buffer " default dir for Explorer @@ -34,7 +35,8 @@ set fileencodings=utf-8,shift-jis,euc-jp,latin1 set showmode set title " display editting file on titlebar set list " display spcial letters such as newline or whitespace -set listchars=tab:>-,extends:<,trail:-,eol:$ " set letters for displaying special letter +" set letters for displaying special letter +set listchars=tab:>-,extends:<,trail:-,eol:$ set ruler " display current line and column set nonumber " do not show line number at left side "set laststatus=2 " always show status line diff --git a/xinitrc b/xinitrc index 51aa0e2..2d7bfd3 100755 --- a/xinitrc +++ b/xinitrc @@ -27,7 +27,8 @@ type synclient >/dev/null 2>&1 && { } xset s 1800 # go blank after 30 min -xset dpms 1810 1820 1830 # standby, suspend and off seem not to be different for my environment +# standby, suspend and off seem not to be different for my environment +xset dpms 1810 1820 1830 unset LC_MESSAGES export LANG=ja_JP.utf8