Better handling of lsb_release.
This commit is contained in:
parent
808874a1f9
commit
320f86a544
@ -51,7 +51,7 @@ function ud() {
|
|||||||
cd
|
cd
|
||||||
}
|
}
|
||||||
function upgrade() {
|
function upgrade() {
|
||||||
case $(lsb_release -i | awk '{print $3}') in
|
case $(lsb_release -si) in
|
||||||
Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;;
|
Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;;
|
||||||
VoidLinux) xbps-install -Su && xbps-remove -RoO ;;
|
VoidLinux) xbps-install -Su && xbps-remove -RoO ;;
|
||||||
esac
|
esac
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
if [[ $(command -v fzf) ]]; then
|
if [[ $(command -v fzf) ]]; then
|
||||||
case $(lsb_release -i | awk '{print $3}') in
|
case $(lsb_release -si) in
|
||||||
Gentoo) source /usr/share/zsh/site-functions/_fzf ;;
|
Gentoo) source /usr/share/zsh/site-functions/_fzf ;;
|
||||||
VoidLinux) source /usr/share/fzf/completion.zsh ;;
|
VoidLinux) source /usr/share/fzf/completion.zsh ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user