diff --git a/.bash.d/bashrc_alias b/.bash.d/bashrc_alias index 81e3f20..3bd92a1 100644 --- a/.bash.d/bashrc_alias +++ b/.bash.d/bashrc_alias @@ -9,7 +9,7 @@ [[ "$-" != *i* ]] && return echo "[load] ${BASH_SOURCE:-$0}" -alias ls='ls -F --color=auto --show-control-chars' +alias ls='ls -F --color=auto --show-control-chars --time-style="+%Y-%m-%d %H:%M:%S"' alias ll='ls -l' alias la='ls -a' alias cp='cp -i' diff --git a/.bash.d/bashrc_alias b/.bash.d/bashrc_alias index 81e3f20..3bd92a1 100644 --- a/.bash.d/bashrc_alias +++ b/.bash.d/bashrc_alias @@ -9,7 +9,7 @@ [[ "$-" != *i* ]] && return echo "[load] ${BASH_SOURCE:-$0}" -alias ls='ls -F --color=auto --show-control-chars' +alias ls='ls -F --color=auto --show-control-chars --time-style="+%Y-%m-%d %H:%M:%S"' alias ll='ls -l' alias la='ls -a' alias cp='cp -i' diff --git a/.bash.d/bashrc_prompt b/.bash.d/bashrc_prompt index e88b431..bc908b7 100644 --- a/.bash.d/bashrc_prompt +++ b/.bash.d/bashrc_prompt @@ -35,7 +35,7 @@ # \W : 作業ディレクトリ[当該ディレクトリのみ] # \! : コマンド履歴番号 # \# : コマンド番号 -# $ : 実行UIDが0の場合#、それ以外の場合$ +# \$ : 実行UIDが0の場合#、それ以外の場合$ # \nnn : 8進数nnnに対応する文字 # \[ : 非表示文字シーケンス開始 # \] : 非表示文字シーケンス終了 @@ -87,5 +87,21 @@ # SGR : \e[nm # # -PS1='\[\e[0m\e[36m\][\u@\h:\W(\[\e[33m\]$(__git_ps1_branch " (%s)")\[\e[31m\]$(__git_ps1_status " (%s)")\[\e[36m\])]\$ \[\e[0m\e[37m\]' +C_BLK='\[\e[30m\]' +C_RED='\[\e[31m\]' +C_GRN='\[\e[32m\]' +C_YEL='\[\e[33m\]' +C_BLU='\[\e[34m\]' +C_MAG='\[\e[35m\]' +C_CYN='\[\e[36m\]' +C_WHT='\[\e[37m\]' +C_CLR='\[\e[39m\]' + +PS1_PROMPT= +PS1_PROMPT="${PS1_PROMPT}${C_CYN}[\u@\h:\W(" +PS1_PROMPT="${PS1_PROMPT}${C_YEL}\$(__git_ps1_branch ' (%s)')" +PS1_PROMPT="${PS1_PROMPT}${C_RED}\$(__git_ps1_status ' (%s)')" +PS1_PROMPT="${PS1_PROMPT}${C_CYN})]\$ " +PS1_PROMPT="${PS1_PROMPT}${C_CLR}" +PS1="${PS1_PROMPT}" PS2='>' diff --git a/.bash.d/bashrc_alias b/.bash.d/bashrc_alias index 81e3f20..3bd92a1 100644 --- a/.bash.d/bashrc_alias +++ b/.bash.d/bashrc_alias @@ -9,7 +9,7 @@ [[ "$-" != *i* ]] && return echo "[load] ${BASH_SOURCE:-$0}" -alias ls='ls -F --color=auto --show-control-chars' +alias ls='ls -F --color=auto --show-control-chars --time-style="+%Y-%m-%d %H:%M:%S"' alias ll='ls -l' alias la='ls -a' alias cp='cp -i' diff --git a/.bash.d/bashrc_prompt b/.bash.d/bashrc_prompt index e88b431..bc908b7 100644 --- a/.bash.d/bashrc_prompt +++ b/.bash.d/bashrc_prompt @@ -35,7 +35,7 @@ # \W : 作業ディレクトリ[当該ディレクトリのみ] # \! : コマンド履歴番号 # \# : コマンド番号 -# $ : 実行UIDが0の場合#、それ以外の場合$ +# \$ : 実行UIDが0の場合#、それ以外の場合$ # \nnn : 8進数nnnに対応する文字 # \[ : 非表示文字シーケンス開始 # \] : 非表示文字シーケンス終了 @@ -87,5 +87,21 @@ # SGR : \e[nm # # -PS1='\[\e[0m\e[36m\][\u@\h:\W(\[\e[33m\]$(__git_ps1_branch " (%s)")\[\e[31m\]$(__git_ps1_status " (%s)")\[\e[36m\])]\$ \[\e[0m\e[37m\]' +C_BLK='\[\e[30m\]' +C_RED='\[\e[31m\]' +C_GRN='\[\e[32m\]' +C_YEL='\[\e[33m\]' +C_BLU='\[\e[34m\]' +C_MAG='\[\e[35m\]' +C_CYN='\[\e[36m\]' +C_WHT='\[\e[37m\]' +C_CLR='\[\e[39m\]' + +PS1_PROMPT= +PS1_PROMPT="${PS1_PROMPT}${C_CYN}[\u@\h:\W(" +PS1_PROMPT="${PS1_PROMPT}${C_YEL}\$(__git_ps1_branch ' (%s)')" +PS1_PROMPT="${PS1_PROMPT}${C_RED}\$(__git_ps1_status ' (%s)')" +PS1_PROMPT="${PS1_PROMPT}${C_CYN})]\$ " +PS1_PROMPT="${PS1_PROMPT}${C_CLR}" +PS1="${PS1_PROMPT}" PS2='>' diff --git a/.bashrc b/.bashrc index b24cb25..2344879 100644 --- a/.bashrc +++ b/.bashrc @@ -40,6 +40,8 @@ # その他設定 export EDITOR=vim +export LANG=ja_JP.UTF-8 +tabs -4 # Completion options diff --git a/.bash.d/bashrc_alias b/.bash.d/bashrc_alias index 81e3f20..3bd92a1 100644 --- a/.bash.d/bashrc_alias +++ b/.bash.d/bashrc_alias @@ -9,7 +9,7 @@ [[ "$-" != *i* ]] && return echo "[load] ${BASH_SOURCE:-$0}" -alias ls='ls -F --color=auto --show-control-chars' +alias ls='ls -F --color=auto --show-control-chars --time-style="+%Y-%m-%d %H:%M:%S"' alias ll='ls -l' alias la='ls -a' alias cp='cp -i' diff --git a/.bash.d/bashrc_prompt b/.bash.d/bashrc_prompt index e88b431..bc908b7 100644 --- a/.bash.d/bashrc_prompt +++ b/.bash.d/bashrc_prompt @@ -35,7 +35,7 @@ # \W : 作業ディレクトリ[当該ディレクトリのみ] # \! : コマンド履歴番号 # \# : コマンド番号 -# $ : 実行UIDが0の場合#、それ以外の場合$ +# \$ : 実行UIDが0の場合#、それ以外の場合$ # \nnn : 8進数nnnに対応する文字 # \[ : 非表示文字シーケンス開始 # \] : 非表示文字シーケンス終了 @@ -87,5 +87,21 @@ # SGR : \e[nm # # -PS1='\[\e[0m\e[36m\][\u@\h:\W(\[\e[33m\]$(__git_ps1_branch " (%s)")\[\e[31m\]$(__git_ps1_status " (%s)")\[\e[36m\])]\$ \[\e[0m\e[37m\]' +C_BLK='\[\e[30m\]' +C_RED='\[\e[31m\]' +C_GRN='\[\e[32m\]' +C_YEL='\[\e[33m\]' +C_BLU='\[\e[34m\]' +C_MAG='\[\e[35m\]' +C_CYN='\[\e[36m\]' +C_WHT='\[\e[37m\]' +C_CLR='\[\e[39m\]' + +PS1_PROMPT= +PS1_PROMPT="${PS1_PROMPT}${C_CYN}[\u@\h:\W(" +PS1_PROMPT="${PS1_PROMPT}${C_YEL}\$(__git_ps1_branch ' (%s)')" +PS1_PROMPT="${PS1_PROMPT}${C_RED}\$(__git_ps1_status ' (%s)')" +PS1_PROMPT="${PS1_PROMPT}${C_CYN})]\$ " +PS1_PROMPT="${PS1_PROMPT}${C_CLR}" +PS1="${PS1_PROMPT}" PS2='>' diff --git a/.bashrc b/.bashrc index b24cb25..2344879 100644 --- a/.bashrc +++ b/.bashrc @@ -40,6 +40,8 @@ # その他設定 export EDITOR=vim +export LANG=ja_JP.UTF-8 +tabs -4 # Completion options diff --git a/.vimrc b/.vimrc index 365cc05..1b0c2d4 100644 --- a/.vimrc +++ b/.vimrc @@ -51,6 +51,7 @@ set splitbelow set number +set encoding=utf-8 set fileencoding=utf-8 set fileencodings=utf-8,sjis,iso-2202-jp-3,euc-jisx0213,guess,ucs-bom,ucs-2le,ucs-2 set fileformat=unix