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