diff options
| author | Can Eldem <celdem@gitlab.com> | 2020-10-02 13:29:06 +0000 |
|---|---|---|
| committer | Can Eldem <celdem@gitlab.com> | 2020-10-02 13:29:06 +0000 |
| commit | 9d4cdb17551ef533495462c109b5974d78dee42c (patch) | |
| tree | 50688995f3beda229c4a2cc56e2135f0f1fa0923 /config | |
| parent | ba400de2a558ddf3540ac81134351ea25ef7d00d (diff) | |
| parent | 71edfa2e0053fdce20392fae24c09f142a1f2b7b (diff) | |
Merge branch 'bash-tidy' into 'master'
Remove unused bash functions
See merge request gitlab-org/security-products/license-management!224
Diffstat (limited to 'config')
| -rw-r--r-- | config/files/.bashrc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/config/files/.bashrc b/config/files/.bashrc index 8349f0b..aaec230 100644 --- a/config/files/.bashrc +++ b/config/files/.bashrc @@ -4,7 +4,6 @@ export ASDF_DATA_DIR="/opt/asdf" export PATH="${ASDF_DATA_DIR}/shims:${ASDF_DATA_DIR}/bin:/opt/gitlab/.local/bin:${PATH}" export HOME="/opt/gitlab" -alias nuget='mono /usr/local/bin/nuget.exe' set -o vi function inflate() { @@ -16,38 +15,6 @@ function inflate() { fi } -update_java_home() { - local java_path - java_path="$(asdf which java)" - if [[ -n "${java_path}" ]]; then - export JAVA_HOME - JAVA_HOME="$(dirname "$(dirname "$(realpath "${java_path}")")")" - fi -} - -function switch_to_exact() { - local tool=$1 - local version=$2 - - asdf shell "$tool" "$version" - if [[ "$tool" = "java" ]]; then - update_java_home - fi -} - -function switch_to() { - local tool=$1 - local major_version=$2 - local version - version="$(grep "$tool" "/opt/gitlab/.tool-versions"| tr ' ' '\n' | grep "^$major_version")" - - switch_to_exact "$tool" "$version" -} - -function major_version_from() { - echo "$1" | cut -d'.' -f1 -} - function enable_dev_mode() { unset HISTFILESIZE unset HISTSIZE |
