resources:bash_resources
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
resources:bash_resources [2015/06/24 11:02] – created 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 11: | Line 15: | ||
</ | </ | ||
+ | \\ | ||
+ | ---- | ||
+ | |||
+ | ====== bash command prompt customization ====== | ||
+ | |||
+ | < | ||
+ | |||
+ | ===== Show cwd basename, not entire absolute path ===== | ||
+ | |||
+ | First, back up the copy of '' | ||
+ | |||
+ | <code bash> | ||
+ | anthony@anthony-VirtualBox: | ||
+ | </ | ||
+ | |||
+ | Changed '' | ||
+ | |||
+ | <code bash> | ||
+ | if [ " | ||
+ | PS1=' | ||
+ | else | ||
+ | # orig. line: | ||
+ | # PS1=' | ||
+ | # adc changed 2016.01.27: | ||
+ | PS1=' | ||
+ | fi | ||
+ | </ | ||
+ | |||
+ | Based on advice from: | ||
+ | |||
+ | http:// | ||
+ | http:// | ||
+ | \\ | ||
+ | ---- |
resources/bash_resources.1435158157.txt.gz · Last modified: (external edit)