Reduce redundancy

This commit is contained in:
Manuel Thalmann 2024-04-04 16:52:29 +02:00
parent d602bb237b
commit 0fa5492e68
8 changed files with 6 additions and 6 deletions

View file

@ -20,6 +20,6 @@ fi;
{
echo 'eval "$(aliae completion bash)"';
} | addBashProfile "aliae" "aliae";
} | addBashProfile "aliae";
popd > /dev/null;

View file

@ -4,7 +4,7 @@ pushd "${BASH_SOURCE%/*}" > /dev/null;
function addBashProfile() {
name="$1";
title="$2";
title="${2:-$1}";
addProfileStatement "$name" "$title" "/bin/bash" "sh" "/etc/bash/conf.d" "${@:3}";
}

View file

@ -4,7 +4,7 @@ pushd "${BASH_SOURCE%/*}" > /dev/null;
function addFishProfile() {
name="$1";
title="$2";
title="${2:-$1}";
addProfileStatement "$name" "$title" "/bin/fish" "fish" "/etc/fish/conf.d" "${@:3}";
}

View file

@ -27,7 +27,7 @@ function dump_aliases() {
echo "end";
echo "";
dump_aliases;
} | addFishProfile "logo-ls" "logo-ls";
} | addFishProfile "logo-ls";
{
echo "";
@ -42,6 +42,6 @@ function dump_aliases() {
echo "}";
echo "";
dump_aliases;
} | addBashProfile "logo-ls" "logo-ls";
} | addBashProfile "logo-ls";
popd > /dev/null;

View file

@ -7,7 +7,7 @@ pushd "${BASH_SOURCE%/*}" > /dev/null;
echo 'export PYENV_ROOT="$HOME/.pyenv"';
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"';
echo 'eval "$(pyenv init -)"';
} | addBashProfile "pyenv" "pyenv";
} | addBashProfile "pyenv";
addFishProfile "pyenv" "pyenv" "pyenv init - | source";
popd > /dev/null;

0
scripts/Unix/Config/KDE/input.sh Normal file → Executable file
View file

0
scripts/Unix/Devices/Logitech G903/install.sh Normal file → Executable file
View file

0
scripts/Unix/Devices/Surface Book 2/install.sh Normal file → Executable file
View file