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;