Install logo-ls
for fish
This commit is contained in:
parent
10fcd7c1c1
commit
9d069eae4f
1 changed files with 10 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue