Update file run_onchange_after_94-bash-it.tmpl
This commit is contained in:
parent
03a3a4b996
commit
3e513c852f
1 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
{{- if (ne .host.distro.family "windows") -}}
|
{{- if (ne .host.distro.family "windows") -}}
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash -i
|
||||||
|
|
||||||
{{ includeTemplate "universal/profile" }}
|
{{ includeTemplate "universal/profile" }}
|
||||||
{{ includeTemplate "universal/logg" }}
|
{{ includeTemplate "universal/logg" }}
|
||||||
|
@ -10,7 +10,7 @@ if ! command -v powerline > /dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Bash-it completions / plugins
|
### Bash-it completions / plugins
|
||||||
if command -v powerline > /dev/null; then
|
if command -v powerline > /dev/null && [ -f "$HOME/.bashrc" ]; then
|
||||||
logg info 'Running `source ~/.bashrc`'
|
logg info 'Running `source ~/.bashrc`'
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
logg success 'Imported the `~/.bashrc` profile'
|
logg success 'Imported the `~/.bashrc` profile'
|
||||||
|
@ -28,7 +28,11 @@ if command -v powerline > /dev/null; then
|
||||||
logg warn '`bash-it` is not available'
|
logg warn '`bash-it` is not available'
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
logg warn '`powerline` is not available'
|
if ! command -v powerline > /dev/null; then
|
||||||
|
logg warn '`powerline` is not available'
|
||||||
|
else
|
||||||
|
logg warn '`~/.bashrc` is missing'
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
Loading…
Reference in a new issue