Prevent re-installations from messing up rc files
This commit is contained in:
parent
31243775ed
commit
01b20d496e
2 changed files with 19 additions and 11 deletions
|
@ -27,8 +27,13 @@ git config --global alias.versteck stash;
|
||||||
git config --global alias.zuestand status;
|
git config --global alias.zuestand status;
|
||||||
git config --global alias.markierig tag;
|
git config --global alias.markierig tag;
|
||||||
|
|
||||||
{
|
source ~/.bashrc;
|
||||||
|
|
||||||
|
if ! alias totsch
|
||||||
|
then
|
||||||
|
{
|
||||||
echo "";
|
echo "";
|
||||||
echo "# Git auf Thurgauerisch";
|
echo "# Git auf Thurgauerisch";
|
||||||
echo "alias totsch='git'";
|
echo "alias totsch='git'";
|
||||||
} >> ~/.bashrc;
|
} >> ~/.bashrc;
|
||||||
|
fi;
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
{
|
if ! grep "\blogo-ls\b" ~/.bashrc > /dev/null
|
||||||
|
then
|
||||||
|
{
|
||||||
echo "# logo-ls";
|
echo "# logo-ls";
|
||||||
echo "alias ls='logo-ls -D'";
|
echo "alias ls='logo-ls -D'";
|
||||||
echo "alias ll='ls -al'";
|
echo "alias ll='ls -al'";
|
||||||
echo "alias l='ls'";
|
echo "alias l='ls'";
|
||||||
} | tee -a ~/.bashrc > /dev/null;
|
} | tee -a ~/.bashrc > /dev/null;
|
||||||
|
fi;
|
||||||
|
|
Loading…
Reference in a new issue