From 7cb9e541292ca4e177582afbcbb9afe149a6070c Mon Sep 17 00:00:00 2001 From: humphreylin Date: Sun, 6 Oct 2019 10:38:28 +0800 Subject: add alias for python and add X server config --- .bashrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index dff0eed..e23838c 100644 --- a/.bashrc +++ b/.bashrc @@ -131,6 +131,13 @@ alias gp='git push' alias cd..='cd ..' +alias pyinit='source venv/bin/activate' + +# X Server +if grep -q Microsoft /proc/version; then + export DISPLAY=localhost:0 +fi + # autojump if [ ! -d /usr/share/autojump ]; then sudo apt install autojump -- cgit v1.2.3