summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-10-02 13:29:05 +0000
committerCan Eldem <celdem@gitlab.com>2020-10-02 13:29:05 +0000
commit71edfa2e0053fdce20392fae24c09f142a1f2b7b (patch)
tree45b2b2d9f54f6d8c80347939f95a4d40e541c1cc /config
parent7a01aa5dba4b8df24419c2e45ead6efe5698a0a9 (diff)
Remove unused bash functions
Diffstat (limited to 'config')
-rw-r--r--config/files/.bashrc33
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