Cleanup some now-unused bash code.

This commit is contained in:
Anna Rose 2020-05-11 16:39:49 +00:00
parent 44564ade7d
commit 71b151adde
2 changed files with 1 additions and 7 deletions

View File

@ -4,4 +4,3 @@ alias grep='LC_ALL="C" grep'
alias bt='transmission-remote' alias bt='transmission-remote'
alias dockviz="docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz" 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 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'

View File

@ -30,9 +30,4 @@ function sp_path {
echo $path echo $path
} }
function sp_docker_context { 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}"
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}"