bash
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
bash [2017/07/02 02:13] – old revision restored (2013/05/08 17:56) k2patel | bash [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 271: | Line 271: | ||
</ | </ | ||
+ | |||
+ | ==== Bash alias and complition ==== | ||
+ | Using command completion for alias in bash. | ||
+ | <code bash ~/ | ||
+ | alias c='/ | ||
+ | export HLIST | ||
+ | HLIST=`cat ~/ | ||
+ | HLIST=" | ||
+ | HLIST=$(echo ${HLIST} | sort | uniq) | ||
+ | complete -W " | ||
+ | </ | ||
==== Control case ==== | ==== Control case ==== |
bash.1498961631.txt.gz · Last modified: 2020/08/10 02:28 (external edit)