14 lines
320 B
Bash
Executable file
14 lines
320 B
Bash
Executable file
#!/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
|
|
cat "$configFile" | tee -a ~/.bashrc > /dev/null;
|
|
fi;
|