Cleanup some now-unused bash code.
This commit is contained in:
parent
44564ade7d
commit
71b151adde
|
@ -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'
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user