Created
March 25, 2020 00:03
-
-
Save aoirint/598eabfc4bfa41e4ccd6f925f52d8264 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://qiita.com/waka424/items/bc77b6e8bd4f25760e58 | |
| export BASH_SILENCE_DEPRECATION_WARNING=1 | |
| # https://qiita.com/lemtosh469/items/81919186611ac68b11c8 | |
| # default:cyan / root:red | |
| if [ $UID -eq 0 ]; then | |
| PS1="\[\033[31m\]\u@\h\[\033[00m\]:\[\033[01m\]\w\[\033[00m\]\\$ " | |
| else | |
| PS1="\[\033[36m\]\u@\h\[\033[00m\]:\[\033[01m\]\w\[\033[00m\]\\$ " | |
| fi | |
| # "-F":ディレクトリに"/"を表示 / "-G"でディレクトリを色表示 | |
| alias ls='ls -FG' | |
| alias ll='ls -alFG' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment