From 9d069eae4ff6ae7534df0227fb20ba3f9ea83d33 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 27 May 2023 23:54:21 +0200 Subject: [PATCH] Install `logo-ls` for `fish` --- scripts/Common/Config/logo-ls/install.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/Common/Config/logo-ls/install.sh b/scripts/Common/Config/logo-ls/install.sh index a075ebfc..5e197f8e 100755 --- a/scripts/Common/Config/logo-ls/install.sh +++ b/scripts/Common/Config/logo-ls/install.sh @@ -1,10 +1,14 @@ #!/bin/bash +configFile="/etc/fish/conf.d/logo-ls.fish"; + +{ + echo "# logo-ls"; + echo "alias ls='logo-ls -D'"; + echo "alias ll='ls -al'"; + echo "alias l='ls'"; +} | sudo tee "$configFile" > /dev/null; + if ! grep "\blogo-ls\b" ~/.bashrc > /dev/null then - { - echo "# logo-ls"; - echo "alias ls='logo-ls -D'"; - echo "alias ll='ls -al'"; - echo "alias l='ls'"; - } | tee -a ~/.bashrc > /dev/null; + cat "$configFile" | tee -a ~/.bashrc > /dev/null; fi;