以前のリビジョンの文書です


bash設定

.bashrc

export PATH=~/bin:${PATH}

# Language configuration
case $TERM in
    xterm*)
        export LANG="ja_JP.UTF-8"
        ;;
    *)
        export LANG="en_GB.UTF-8"
        ;;
esac

# if [ -e /boot/nofsprotect ] # overlay
if [ `grep -c nofsprotect /boot/cmdline.txt` = 1 ] # fsprotect
then
  echo "[fsprotect: writable]"
  PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;31m\][writable]\[\033[00m\] :\[\033[01;34m\]\w \$\[\033[00m\] '
else
  echo "[fsprotect: protected]"
  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
    . ~/.bash_aliases
fi

「.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'
raspberry_pi/0080bash.1499334572.txt.gz · 最終更新: 2017/07/06 09:49 by admin
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0