| @@ -318,10 +318,12 @@ __safe_alias sudoe="sudoedit" | |||||
| # __safe_alias halt="sudo halt" | # __safe_alias halt="sudo halt" | ||||
| # __safe_alias reboot="sudo reboot" | # __safe_alias reboot="sudo reboot" | ||||
| null type dbus-send && { | 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" | alias rand="echo \$RANDOM" | ||||
| __safe_alias xunp="file-roller -h" | __safe_alias xunp="file-roller -h" | ||||
| @@ -1042,11 +1044,14 @@ ipaddress(){ | |||||
| __my_ps1_str="" | __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(){ | __my_ps1_scale(){ | ||||
| if null type stty && ! $ismsys | if null type stty && ! $ismsys | ||||
| @@ -21,7 +21,8 @@ set viminfo+=n~/.vim/viminfo " viminfo | |||||
| set wildmode=longest,list,full | set wildmode=longest,list,full | ||||
| set hidden " can switch to another buffer even when editting a file | set hidden " can switch to another buffer even when editting a file | ||||
| "set backspace=indent,eol,start " backspace can erase these things | "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 mouse=h " do not use mouse | ||||
| set clipboard+=unnamed " use x clipboard, seems not to work | set clipboard+=unnamed " use x clipboard, seems not to work | ||||
| set browsedir=buffer " default dir for Explorer | set browsedir=buffer " default dir for Explorer | ||||
| @@ -34,7 +35,8 @@ set fileencodings=utf-8,shift-jis,euc-jp,latin1 | |||||
| set showmode | set showmode | ||||
| set title " display editting file on titlebar | set title " display editting file on titlebar | ||||
| set list " display spcial letters such as newline or whitespace | 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 ruler " display current line and column | ||||
| set nonumber " do not show line number at left side | set nonumber " do not show line number at left side | ||||
| "set laststatus=2 " always show status line | "set laststatus=2 " always show status line | ||||
| @@ -27,7 +27,8 @@ type synclient >/dev/null 2>&1 && { | |||||
| } | } | ||||
| xset s 1800 # go blank after 30 min | 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 | unset LC_MESSAGES | ||||
| export LANG=ja_JP.utf8 | export LANG=ja_JP.utf8 | ||||