26 lines
748 B
Fish
26 lines
748 B
Fish
if status is-interactive
|
|
# Commands to run in interactive sessions can go here
|
|
end
|
|
|
|
set fish_greeting ""
|
|
|
|
set Profile_PATH $HOME/My/profiles
|
|
for i in $(ls $Profile_PATH/aliases/)
|
|
. $Profile_PATH/aliases/$i
|
|
end
|
|
|
|
# Proxy
|
|
abbr --add 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"
|
|
abbr --add unsetproxy "set -e http_proxy https_proxy all_proxy"
|
|
|
|
# Python venv
|
|
abbr --add newvenv "python -m venv .venv"
|
|
abbr --add actvenv ". .venv/bin/activate.fish"
|
|
|
|
# Container
|
|
abbr --add crt "c run -it --rm" # container run temporarily
|
|
abbr --add ce "c exec -it" # container exec
|
|
|
|
# PATH
|
|
set -U fish_user_paths $HOME/.local/bin $HOME/go/bin $HOME/.local/share/JetBrains/Toolbox/scripts
|