bash
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| bash [2013/05/08 17:56] – [Bash Tips / Tricks] 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.1368035777.txt.gz · Last modified: 2020/08/10 02:28 (external edit)
