From 320f86a5449bd0d6b8d6c3c594ed27438f3a512d Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Sun, 7 May 2023 15:29:23 +0200 Subject: [PATCH] Better handling of lsb_release. --- zsh/aliases.zsh | 2 +- zsh/fzf.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 4370976..2e5cd05 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -51,7 +51,7 @@ function ud() { cd } function upgrade() { - case $(lsb_release -i | awk '{print $3}') in + case $(lsb_release -si) in Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;; VoidLinux) xbps-install -Su && xbps-remove -RoO ;; esac diff --git a/zsh/fzf.zsh b/zsh/fzf.zsh index 26a1814..441de95 100644 --- a/zsh/fzf.zsh +++ b/zsh/fzf.zsh @@ -1,5 +1,5 @@ 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 ;; VoidLinux) source /usr/share/fzf/completion.zsh ;; esac