From 150f819494c50a3e01e3bba113cee91e8299292b Mon Sep 17 00:00:00 2001 From: Gal Szkolnik Date: Sun, 19 Jun 2022 22:42:56 -0400 Subject: [PATCH] Add inkscape alias when flatpack exists This will allow calling flatpack easily for svg manipulation of emojis --- _home/dot_sz.shrc.d/21_aliases | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_home/dot_sz.shrc.d/21_aliases b/_home/dot_sz.shrc.d/21_aliases index 6461d33..0333ba6 100644 --- a/_home/dot_sz.shrc.d/21_aliases +++ b/_home/dot_sz.shrc.d/21_aliases @@ -8,3 +8,5 @@ alias l='ls -CF' alias lessr="less --raw-control-chars " alias sz-edshrc="ed ~/.sz.shrc.d ; exec $SHELL" + +[[ -z "$(env inkscape 2> /dev/null)" && -n "$(flatpak info org.inkscape.Inkscape 2> /dev/null)" ]] && alias inkscape="flatpak run org.inkscape.Inkscape "