This commit is contained in:
2024-08-06 17:31:08 +08:00
commit 4a284861de
6 changed files with 158 additions and 0 deletions

28
fish/config.fish Normal file
View File

@@ -0,0 +1,28 @@
if status is-interactive
# Commands to run in interactive sessions can go here
end
set fish_greeting ""
set Profile_PATH ~/My/profiles
if test -e $Profile_PATH/shell/aliases.sh
. $Profile_PATH/shell/aliases.sh
end
# Python venv
# ----------------------------
alias newvenv="python -m venv .venv"
alias actvenv=". .venv/bin/activate.fish"
# Proxy
# ----------------------------
alias setproxy="export http_proxy=http://127.0.0.1:7890 https_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890"
alias unsetproxy="set -e http_proxy https_proxy all_proxy"
# PATH
# ----------------------------
set PATH $PATH ~/My/apps/
set PATH $PATH ~/node_modules/.bin/
set PATH $PATH ~/.local/share/JetBrains/Toolbox/scripts
export PATH