差分
この文書の現在のバージョンと選択したバージョンの差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
|
raspberry_pi:0080bash [2017/07/06 09:33] admin 作成 |
raspberry_pi:0080bash [2017/07/23 00:56] (現在) admin |
||
|---|---|---|---|
| ライン 2: | ライン 2: | ||
| .bashrc | .bashrc | ||
| - | export PATH=~/bin:${PATH} | + | <code bash bashrc> |
| + | export PATH=~/bin:${PATH} | ||
| | | ||
| - | # Language configuration | + | # Language configuration |
| - | case $TERM in | + | case $TERM in |
| - | xterm*) | + | xterm*) |
| - | export LANG="ja_JP.UTF-8" | + | export LANG="ja_JP.UTF-8" |
| - | ;; | + | ;; |
| - | *) | + | *) |
| - | export LANG="en_GB.UTF-8" | + | export LANG="en_GB.UTF-8" |
| - | ;; | + | ;; |
| - | esac | + | esac |
| | | ||
| - | if [ `grep -c nofsprotect /boot/cmdline.txt` = 1 ] | + | # if [ -e /boot/nofsprotect ] # overlay |
| - | then | + | if [ `grep -c nofsprotect /boot/cmdline.txt` = 1 ] # fsprotect |
| - | echo "[fsprotect: writable]" | + | then |
| - | PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;31m\][writable]\[\033[00m\] :\[\033[01;34m\]\w \$\[\033[00m\] ' | + | echo "[fsprotect: writable]" |
| - | else | + | PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;31m\][writable]\[\033[00m\] :\[\033[01;34m\]\w \$\[\033[00m\] ' |
| - | echo "[fsprotect: protected]" | + | else |
| - | PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;30m\][protected]\[\033[00m\] :\[\033[01;34m\]\w \$\[\033[00m\] ' | + | echo "[fsprotect: protected]" |
| - | fi | + | PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;30m\][protected]\[\033[00m\] :\[\033[01;34m\]\w \$\[\033[00m\] ' |
| + | fi | ||
| | | ||
| - | if [ -f ~/.bash_aliases ]; then | + | if [ -f ~/.bash_aliases ]; then |
| - | . ~/.bash_aliases | + | . ~/.bash_aliases |
| - | fi | + | fi |
| - | 「.bash_aliases」 | + | alias lsa="\ls -lsAF --color=auto" |
| - | alias lsa="\ls -lsAF --color=auto" | + | alias ls="\ls -lsF --color=auto" |
| - | alias ls="\ls -lsF --color=auto" | + | alias l="\ls -lsFC --color=auto" |
| - | alias l="\ls -lsFC --color=auto" | + | alias v="\less" |
| - | alias v="\less" | + | alias g="\grep" |
| - | alias g="\grep" | + | alias c='clear' |
| - | alias c='clear' | + | </code> |
| - | | + | |
| + | <code bash bash_aliases> | ||
| + | alias lsa="\ls -lsAF --color=auto" | ||
| + | alias ls="\ls -lsF --color=auto" | ||
| + | alias l="\ls -lsFC --color=auto" | ||
| + | alias v="\less" | ||
| + | alias g="\grep" | ||
| + | alias c='clear' | ||
| + | </code> | ||
| | | ||