Skip to content

Commit

Permalink
better bash prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylampada committed Sep 17, 2023
1 parent f9badaa commit b7e5a05
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .devcontainer/bashrc_ext
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
alias ll='ls -lah'
source /usr/share/bash-completion/completions/git

#!/bin/bash
RESTORE='\033[0m'
RED='\033[00;31m'
GREEN='\033[00;32m'
YELLOW='\e[0;33m'

function quickstart {
echo -e ""
echo -e "${RED}run tests${RESTORE}"
echo -e "${YELLOW}python -m unittest${RESTORE}"
echo -e ""
}
5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"python.testing.unittestArgs": [
"-v",
"-s",
".",
"./tests",
"-p",
"test_*.py"
],
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.testing.unittestEnabled": true,
"python.testing.pytestArgs": [
"."
]
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM python:3.8
RUN apt-get update && apt-get install -y make libgl1-mesa-glx && rm -rf /var/lib/apt/lists/*
WORKDIR /roboflow-python
COPY .devcontainer/bashrc_ext /root/bashrc_ext
RUN echo "source /root/bashrc_ext" >> ~/.bashrc
COPY . .
RUN pip install -e ".[dev]"

0 comments on commit b7e5a05

Please sign in to comment.