From 8075e170fdf06ed038a8e7819fd0bce6bbe530b0 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 2 Sep 2022 10:39:22 +0200 Subject: [PATCH] .bashrc --- .bashrc | 21 +++++++++++++++++++-- README.md | 8 ++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index e549fdf..df8b7bd 100644 --- a/.bashrc +++ b/.bashrc @@ -105,8 +105,10 @@ PY_BLUE_FG='\e[38;2;53;112;160m' PY_BLUE_BG='\e[48;2;53;112;160m' PY_YELLOW_FG='\e[38;2;255;222;87m' PY_YELLOW_BG='\e[48;2;255;222;87m' -PY_PS1='$(python_ps1 "${PY_BLUE_FG}🭋${PY_BLUE_BG}${PY_YELLOW_FG}  %s \e[0m${PY_BLUE_FG}🭛\e[0m")' -GIT_PS1='$(__git_ps1 "${GIT_RED_FG}🭋${GIT_RED_BG}\e[97m  %s \e[0m${GIT_RED_FG}🭛\e[0m")' +# 🬫🬛 +# 🭮🭬 +PY_PS1='$(python_ps1 "${PY_BLUE_FG}🭮${PY_BLUE_BG}${PY_YELLOW_FG}  %s \e[0m${PY_BLUE_FG}🭬\e[0m")' +GIT_PS1='$(__git_ps1 "${GIT_RED_FG}🭮${GIT_RED_BG}\e[97m  %s \e[0m${GIT_RED_FG}🭬\e[0m")' PS1="${_TITLE}${_PREV_FAIL}${USERNAME_COLOR}\u\e[0m@${HOSTNAME_COLOR}\H\e[0m:\e[32m\w\e[0m${PY_PS1}${GIT_PS1}\n\$ " eval "$(direnv hook bash)" @@ -193,3 +195,18 @@ e() { emacsclient --no-wait "$@" } + +venv() +{ + # direnv-enabled venv creation. + if ! [[ -d .venv ]] + then + "python$1" -m venv .venv + echo 'PATH=$(pwd)/.venv/bin/:$PATH' >> .envrc + fi +} + +pip-common() +{ + pip install --upgrade mypy black flake8 jedi-language-server pylint build twine grip tox +} diff --git a/README.md b/README.md index e005ecc..b5f40bd 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,14 @@ apt install \ liblzma-dev ``` +and for pidgin: + +```bash + +apt install pidgin \ + pidgin-plugin-pack # Pour IRC + purple-discord +``` # Install my dotfiles