Install logo-ls for fish

This commit is contained in:
Manuel Thalmann 2023-05-27 23:54:21 +02:00
parent 10fcd7c1c1
commit 9d069eae4f

View file

@ -1,10 +1,14 @@
#!/bin/bash
if ! grep "\blogo-ls\b" ~/.bashrc > /dev/null
then
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'";
} | tee -a ~/.bashrc > /dev/null;
} | sudo tee "$configFile" > /dev/null;
if ! grep "\blogo-ls\b" ~/.bashrc > /dev/null
then
cat "$configFile" | tee -a ~/.bashrc > /dev/null;
fi;