From 71b151adde88970e2099fde83d71daf7c2724364 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Mon, 11 May 2020 16:39:49 +0000 Subject: [PATCH] Cleanup some now-unused bash code. --- bash/misc_aliases.sh | 1 - bash/super_prompt.sh | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/bash/misc_aliases.sh b/bash/misc_aliases.sh index b1d504e..2979fc3 100644 --- a/bash/misc_aliases.sh +++ b/bash/misc_aliases.sh @@ -4,4 +4,3 @@ alias grep='LC_ALL="C" grep' alias bt='transmission-remote' alias dockviz="docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz" alias timestamp="date -u +'%Y%m%d%H%M%S'" -alias go='docker run --rm -it -v $(pwd):/go/src/ -w /go/src golang:1.11 go' diff --git a/bash/super_prompt.sh b/bash/super_prompt.sh index b5837b0..4c331e9 100644 --- a/bash/super_prompt.sh +++ b/bash/super_prompt.sh @@ -30,9 +30,4 @@ function sp_path { echo $path } -function sp_docker_context { - local name=$(docker context inspect | grep Name | tr -d ' ' | sed -E "s/\"Name\":\"(.*)\",/\1/") - [ $name != 'default' ] && echo $name -} - -export PS1="[${C_YELLOW}\u${C_NO}@${C_BLUE}${HOSTNAME}${C_NO}:${C_GREEN}\$(sp_path)${C_NO}] ${C_MAGENTA}\$(sp_git)${C_NO} ${C_GREEN}\$(sp_docker_context)${C_NO} ${C_RED}\$(echo -n \$DOCKER_MACHINE_NAME)${C_NO} \n${C_RED}\$ ${C_NO}" +export PS1="[${C_YELLOW}\u${C_NO}@${C_BLUE}${HOSTNAME}${C_NO}:${C_GREEN}\$(sp_path)${C_NO}] ${C_MAGENTA}\$(sp_git)${C_NO} ${C_RED}\$(echo -n \$DOCKER_MACHINE_NAME)${C_NO} \n${C_RED}\$ ${C_NO}"