From 71edfa2e0053fdce20392fae24c09f142a1f2b7b Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 2 Oct 2020 13:29:05 +0000 Subject: Remove unused bash functions --- config/files/.bashrc | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'config') 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 -- cgit v1.2.3