resources:bash_resources
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:bash_resources [2016/01/27 20:47] – anthony | resources:bash_resources [2019/05/22 16:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== bash Resources ====== | ||
+ | |||
+ | \\ | ||
+ | |||
====== bash variables ====== | ====== bash variables ====== | ||
Line 10: | Line 14: | ||
declare -p | declare -p | ||
</ | </ | ||
+ | |||
+ | \\ | ||
+ | ---- | ||
====== bash command prompt customization ====== | ====== bash command prompt customization ====== | ||
+ | < | ||
+ | |||
+ | ===== Show cwd basename, not entire absolute path ===== | ||
+ | |||
+ | First, back up the copy of '' | ||
<code bash> | <code bash> | ||
Line 18: | Line 30: | ||
</ | </ | ||
+ | Changed '' | ||
+ | <code bash> | ||
+ | if [ " | ||
+ | PS1=' | ||
+ | else | ||
+ | # orig. line: | ||
+ | # PS1=' | ||
+ | # adc changed 2016.01.27: | ||
+ | PS1=' | ||
+ | fi | ||
+ | </ | ||
+ | |||
+ | Based on advice from: | ||
http:// | http:// | ||
+ | |||
+ | http:// | ||
+ | \\ | ||
+ | ---- |
resources/bash_resources.1453945627.txt.gz · Last modified: (external edit)