linux-configuration
環境設定について
設定ファイルのPATH
設定内容
ENV_MODE="localhost"
#ENV_MODE="production"
#ENV_MODE="staging"
#ENV_MODE="development"
#ENV_MODE="trial"
# Change the color for each environment.
ENV_COLOR="32m" # Localhost
#ENV_COLOR="31m" # Production
#ENV_COLOR="33m" # Staging
#ENV_COLOR="34m" # Development
#ENV_COLOR="35m" # Trial
About .bash_profile
Prompt color
For localhost
![Example](https://github.com/artlife3/linux-configuration/raw/master/README/ps1_example_color_localhost.jpg)
For Production
![Example](https://github.com/artlife3/linux-configuration/raw/master/README/ps1_example_color_production.jpg)
For Staging
![Example](https://github.com/artlife3/linux-configuration/raw/master/README/ps1_example_color_staging.jpg)
For Development
![Example](https://github.com/artlife3/linux-configuration/raw/master/README/ps1_example_color_development.jpg)
For Trial
![Example](https://github.com/artlife3/linux-configuration/raw/master/README/ps1_example_color_trial.jpg)
PS1設定Example
Datetime added
export PS1='\[\033[1;$ENV_COLOR\]\h@\u [\D{%Y-%m-%d %T}]\[\033[00m\]:\[\033[1;34m\]\W \[\033[00m\]\n\$ '
![Example](https://github.com/artlife3/linux-configuration/raw/master/README/ps1_example_datetime_add.jpg)
Standard
export PS1='\[\033[1;$ENV_COLOR\]\h@\u\[\033[00m\]:\[\033[1;34m\]\W \[\033[00m\]\$ '
![Example](https://github.com/artlife3/linux-configuration/raw/master/README/ps1_example_standard.jpg)
With Git
export PS1='\[\033[1;$ENV_COLOR\]\h@\u\[\033[00m\]:\[\033[1;34m\]\W\[\033[1;31m\]$(__git_ps1)\[\033[00m\] \$ '
![Example](https://github.com/artlife3/linux-configuration/raw/master/README/ps1_example_with_git.jpg)
Datetime added with Git
export PS1='\[\033[1;$ENV_COLOR\]\h@\u [\D{%Y-%m-%d %T}]\[\033[00m\]:\[\033[1;34m\]\W\[\033[1;31m\]$(__git_ps1)\[\033[00m\]\n\$ '
![Example](https://github.com/artlife3/linux-configuration/raw/master/README/ps1_example_datetime_add_with_git.jpg)
About .vimrc
![Example](https://github.com/artlife3/linux-configuration/raw/master/README/example_vimrc.png)
About .my.cnf
![Example](https://github.com/artlife3/linux-configuration/raw/master/README/example_my_cnf.png)