Skip to content

Commit b7e5a05

Browse files
committed
better bash prompt
1 parent f9badaa commit b7e5a05

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

.devcontainer/bashrc_ext

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
parse_git_branch() {
2+
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
3+
}
4+
export PS1="\[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
5+
alias ll='ls -lah'
6+
source /usr/share/bash-completion/completions/git
7+
8+
#!/bin/bash
9+
RESTORE='\033[0m'
10+
RED='\033[00;31m'
11+
GREEN='\033[00;32m'
12+
YELLOW='\e[0;33m'
13+
14+
function quickstart {
15+
echo -e ""
16+
echo -e "${RED}run tests${RESTORE}"
17+
echo -e "${YELLOW}python -m unittest${RESTORE}"
18+
echo -e ""
19+
}

.vscode/settings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
"python.testing.unittestArgs": [
33
"-v",
44
"-s",
5-
".",
5+
"./tests",
66
"-p",
77
"test_*.py"
88
],
9-
"python.testing.pytestEnabled": true,
10-
"python.testing.unittestEnabled": false,
9+
"python.testing.unittestEnabled": true,
1110
"python.testing.pytestArgs": [
1211
"."
1312
]

Dockerfile.dev

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM python:3.8
22
RUN apt-get update && apt-get install -y make libgl1-mesa-glx && rm -rf /var/lib/apt/lists/*
33
WORKDIR /roboflow-python
4+
COPY .devcontainer/bashrc_ext /root/bashrc_ext
5+
RUN echo "source /root/bashrc_ext" >> ~/.bashrc
46
COPY . .
57
RUN pip install -e ".[dev]"

0 commit comments

Comments
 (0)