bashrc: Add Bash completion on Linux
This commit is contained in:
parent
d0194b9232
commit
390cae1aee
1 changed files with 3 additions and 0 deletions
3
.bashrc
3
.bashrc
|
|
@ -28,6 +28,9 @@ command -v uname >/dev/null &&
|
||||||
Linux)
|
Linux)
|
||||||
alias ls='ls --color'
|
alias ls='ls --color'
|
||||||
[ -z "$ID" ] && [ -f /etc/os-release ] && . /etc/os-release
|
[ -z "$ID" ] && [ -f /etc/os-release ] && . /etc/os-release
|
||||||
|
|
||||||
|
[ -r /usr/share/bash-completion/bash_completion ] \
|
||||||
|
&& . /usr/share/bash-completion/bash_completion
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
command -v port >/dev/null && . /opt/local/etc/bashrc.mac
|
command -v port >/dev/null && . /opt/local/etc/bashrc.mac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue