문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
wiki:os:linux:bashrc [2020/09/03 13:25] dhan |
wiki:os:linux:bashrc [2023/01/13 18:44] (현재) |
||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== bashrc 커스터마이징 ====== | ====== bashrc 커스터마이징 ====== | ||
| <WRAP left notice 80%> | <WRAP left notice 80%> | ||
| - | * description : | + | * description : bashrc 유용한 정보 모음 |
| * author | * author | ||
| * email : dhan@repia.com | * email : dhan@repia.com | ||
| 줄 79: | 줄 79: | ||
| fi | fi | ||
| </ | </ | ||
| + | |||
| + | Git 브랜치 칼라로 보여주기 | ||
| + | <code bash> | ||
| + | parse_git_branch() { | ||
| + | git branch 2> /dev/null | sed -e '/ | ||
| + | } | ||
| + | if [ " | ||
| + | | ||
| + | else | ||
| + | | ||
| + | fi | ||
| + | # THE SIX LINES BELOW are the default prompt and the unset (which were in the original .bashrc) | ||
| + | #if [ " | ||
| + | # PS1=' | ||
| + | #else | ||
| + | # PS1=' | ||
| + | #fi | ||
| + | #unset color_prompt force_color_prompt | ||
| + | </ | ||
| + | |||
| ===== Ref ===== | ===== Ref ===== | ||
| + | * [[https:// | ||
| ---- | ---- | ||
| {{tag> | {{tag> | ||