From 2e34fdd813d6b461a6c012303ee351603de80046 Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Thu, 21 Jul 2022 00:59:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20bash=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8F=8A=E6=A1=8C=E9=9D=A2=20PATH=20=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot/.bashrc | 27 ++++++++++++++++++++++++--- dot/.xprofile | 10 ++++++++-- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/dot/.bashrc b/dot/.bashrc index 6dcab0d..12a3ea9 100644 --- a/dot/.bashrc +++ b/dot/.bashrc @@ -30,9 +30,6 @@ alias la="ls -a" alias lh="ls -lh" alias lha="ls -lha" -if [[ "${TERM}" != "tmux-256color" ]]; then - tmux -fi set-proxy() { export http_proxy=http://127.0.0.1:8118 @@ -44,6 +41,14 @@ unset-proxy() { unset https_proxy } +set-git-proxy() { + git config --global http.proxy 127.0.0.1:8118 +} + +unset-git-proxy() { + git config --global --unset http.proxy +} + set-npm-proxy() { npm config set proxy http://127.0.0.1:8118 npm config set https-proxy http://127.0.0.1:8118 @@ -53,3 +58,19 @@ unset-npm-proxy() { npm config delete proxy npm config delete https-proxy } + +if [[ "${TERM}" != "tmux-256color" ]]; then + tmux +fi + +alias pip='function _pip() { + if [ $1 == "search" ]; then + pip_search "$2"; + else pip "$@"; + fi; +};_pip' + +# pnpm +export PNPM_HOME="/home/zedhugh/.local/share/pnpm" +export PATH="$PNPM_HOME:$PATH" +# pnpm end diff --git a/dot/.xprofile b/dot/.xprofile index eb79e94..126211b 100644 --- a/dot/.xprofile +++ b/dot/.xprofile @@ -16,7 +16,7 @@ fcitx5 -d #export QT_IM_MODULE="ibus" #ibus-daemon -drx -# xcompmgr -c & +xcompmgr & # nm-applet & #fcitx -d & > /dev/null @@ -36,4 +36,10 @@ fcitx5 -d #sudo java -jar tcpspeed_client.jar -b & #cd #sudo service shadowsocks.client start -emacs --daemon +# emacs --daemon + +export PATH="~/.local/bin${PATH:+:}$PATH" +# pnpm +export PNPM_HOME="/home/zedhugh/.local/share/pnpm" +export PATH="$PNPM_HOME:$PATH" +# pnpm end