更新 bash 配置及桌面 PATH 环境变量
This commit is contained in:
27
dot/.bashrc
27
dot/.bashrc
@@ -30,9 +30,6 @@ alias la="ls -a"
|
|||||||
alias lh="ls -lh"
|
alias lh="ls -lh"
|
||||||
alias lha="ls -lha"
|
alias lha="ls -lha"
|
||||||
|
|
||||||
if [[ "${TERM}" != "tmux-256color" ]]; then
|
|
||||||
tmux
|
|
||||||
fi
|
|
||||||
|
|
||||||
set-proxy() {
|
set-proxy() {
|
||||||
export http_proxy=http://127.0.0.1:8118
|
export http_proxy=http://127.0.0.1:8118
|
||||||
@@ -44,6 +41,14 @@ unset-proxy() {
|
|||||||
unset https_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() {
|
set-npm-proxy() {
|
||||||
npm config set proxy http://127.0.0.1:8118
|
npm config set proxy http://127.0.0.1:8118
|
||||||
npm config set https-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 proxy
|
||||||
npm config delete https-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
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ fcitx5 -d
|
|||||||
#export QT_IM_MODULE="ibus"
|
#export QT_IM_MODULE="ibus"
|
||||||
#ibus-daemon -drx
|
#ibus-daemon -drx
|
||||||
|
|
||||||
# xcompmgr -c &
|
xcompmgr &
|
||||||
# nm-applet &
|
# nm-applet &
|
||||||
|
|
||||||
#fcitx -d & > /dev/null
|
#fcitx -d & > /dev/null
|
||||||
@@ -36,4 +36,10 @@ fcitx5 -d
|
|||||||
#sudo java -jar tcpspeed_client.jar -b &
|
#sudo java -jar tcpspeed_client.jar -b &
|
||||||
#cd
|
#cd
|
||||||
#sudo service shadowsocks.client start
|
#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
|
||||||
|
|||||||
Reference in New Issue
Block a user