Reduce redundancy
This commit is contained in:
parent
d602bb237b
commit
0fa5492e68
8 changed files with 6 additions and 6 deletions
|
@ -20,6 +20,6 @@ fi;
|
||||||
|
|
||||||
{
|
{
|
||||||
echo 'eval "$(aliae completion bash)"';
|
echo 'eval "$(aliae completion bash)"';
|
||||||
} | addBashProfile "aliae" "aliae";
|
} | addBashProfile "aliae";
|
||||||
|
|
||||||
popd > /dev/null;
|
popd > /dev/null;
|
||||||
|
|
|
@ -4,7 +4,7 @@ pushd "${BASH_SOURCE%/*}" > /dev/null;
|
||||||
|
|
||||||
function addBashProfile() {
|
function addBashProfile() {
|
||||||
name="$1";
|
name="$1";
|
||||||
title="$2";
|
title="${2:-$1}";
|
||||||
addProfileStatement "$name" "$title" "/bin/bash" "sh" "/etc/bash/conf.d" "${@:3}";
|
addProfileStatement "$name" "$title" "/bin/bash" "sh" "/etc/bash/conf.d" "${@:3}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ pushd "${BASH_SOURCE%/*}" > /dev/null;
|
||||||
|
|
||||||
function addFishProfile() {
|
function addFishProfile() {
|
||||||
name="$1";
|
name="$1";
|
||||||
title="$2";
|
title="${2:-$1}";
|
||||||
addProfileStatement "$name" "$title" "/bin/fish" "fish" "/etc/fish/conf.d" "${@:3}";
|
addProfileStatement "$name" "$title" "/bin/fish" "fish" "/etc/fish/conf.d" "${@:3}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ function dump_aliases() {
|
||||||
echo "end";
|
echo "end";
|
||||||
echo "";
|
echo "";
|
||||||
dump_aliases;
|
dump_aliases;
|
||||||
} | addFishProfile "logo-ls" "logo-ls";
|
} | addFishProfile "logo-ls";
|
||||||
|
|
||||||
{
|
{
|
||||||
echo "";
|
echo "";
|
||||||
|
@ -42,6 +42,6 @@ function dump_aliases() {
|
||||||
echo "}";
|
echo "}";
|
||||||
echo "";
|
echo "";
|
||||||
dump_aliases;
|
dump_aliases;
|
||||||
} | addBashProfile "logo-ls" "logo-ls";
|
} | addBashProfile "logo-ls";
|
||||||
|
|
||||||
popd > /dev/null;
|
popd > /dev/null;
|
||||||
|
|
|
@ -7,7 +7,7 @@ pushd "${BASH_SOURCE%/*}" > /dev/null;
|
||||||
echo 'export PYENV_ROOT="$HOME/.pyenv"';
|
echo 'export PYENV_ROOT="$HOME/.pyenv"';
|
||||||
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"';
|
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"';
|
||||||
echo 'eval "$(pyenv init -)"';
|
echo 'eval "$(pyenv init -)"';
|
||||||
} | addBashProfile "pyenv" "pyenv";
|
} | addBashProfile "pyenv";
|
||||||
|
|
||||||
addFishProfile "pyenv" "pyenv" "pyenv init - | source";
|
addFishProfile "pyenv" "pyenv" "pyenv init - | source";
|
||||||
popd > /dev/null;
|
popd > /dev/null;
|
||||||
|
|
0
scripts/Unix/Config/KDE/input.sh
Normal file → Executable file
0
scripts/Unix/Config/KDE/input.sh
Normal file → Executable file
0
scripts/Unix/Devices/Logitech G903/install.sh
Normal file → Executable file
0
scripts/Unix/Devices/Logitech G903/install.sh
Normal file → Executable file
0
scripts/Unix/Devices/Surface Book 2/install.sh
Normal file → Executable file
0
scripts/Unix/Devices/Surface Book 2/install.sh
Normal file → Executable file
Loading…
Reference in a new issue