Sensor Network: IoT World for the Future

Intel Edison 環境設定メモ

EDISOnの細々した環境設定

パッケージのアップデート

# opkg update
# opkg upgrade

bashのインストール

# opkg install bash git
# chsh -s /bin/bash

時刻設定(タイムゾーン)

timedatectl set-timezone Asia/Tokyo

.bashrcの編集


# .bashrc
# User specific aliases and functions
## Alias
alias g='git'
alias ll='ls -lhF --color=auto'
alias la='ls -lhFa --color=auto'
alias vg='vagrant'
# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

.bash_profileの編集


# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs
export LANG='ja_JP.utf8'

## git completions
export BASH_COM_DIR=/etc/bash_completion.d
if [ -f $BASH_COM_DIR/git-prompt.sh -a -f $BASH_COM_DIR/git-completion.bash ]; then
    . $BASH_COM_DIR/git-prompt.sh
    . $BASH_COM_DIR/git-completion.bash

    GIT_PS1_SHOWUPSTREAM=auto
    GIT_PS1_SHOWDIRTYSTATE=true
    GIT_PS1_SHOWUNTRACKEDFILES=true
    export PS1='\h:\W\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
    # alias g='git' への対応
    __git_complete g __git_main
fi

Leave a comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください