This commit is contained in:
2026-05-06 13:34:56 +08:00
parent 286f0596c6
commit 16ea678a72
7 changed files with 34 additions and 21 deletions

2
aliases/bat.sh Normal file
View File

@@ -0,0 +1,2 @@
# bat
alias bat="bat --theme ansi"

View File

@@ -1,7 +1,8 @@
alias c=podman
alias crt="c run -it --rm" # container run temporarily
alias ce="c exec -it" # container exec
#alias nginx="c exec nginx nginx"
# alias crt="c run -it --rm" # container run temporarily
# alias ce="c exec -it" # container exec
# alias nginx="c exec nginx nginx"
# alias lzd="DOCKER_HOST=unix:///run/podman/podman.sock lazydocker"
alias lzd="DOCKER_HOST=unix:///run/user/1000/podman/podman.sock lazydocker"

View File

@@ -1,8 +1,7 @@
# List file
alias l="ls -a"
alias la="ls -a"
alias ll="ls -lh"
alias lla="ls -alh"
alias l="ls -A"
alias la="ls -lhA --time-style long-iso"
alias ll="ls -lh --time-style long-iso"
# Directory and File
alias mkdir="mkdir -pv"

View File

@@ -1,6 +0,0 @@
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"
# The following alias is for bash or zsh
[ -n "$BASH_VERSION" -o -n "$ZSH_VERSION" ] && \
alias unsetproxy="unset http_proxy https_proxy all_proxy"

View File

@@ -1,7 +0,0 @@
# Python venv
alias newvenv="python -m venv .venv"
alias actvenv=". .venv/bin/activate.fish"
# The following alias is for bash or zsh
[ -n "$BASH_VERSION" -o -n "$ZSH_VERSION" ] && \
alias actvenv=". .venv/bin/activate"

View File

@@ -16,6 +16,18 @@ for i in $(ls $Profile_PATH/aliases); do
. $Profile_PATH/aliases/$i
done
# 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="unset http_proxy https_proxy all_proxy"
# Python venv
alias newvenv="python -m venv .venv"
alias actvenv=". .venv/bin/activate"
# Container
alias crt="c run -it --rm" # container run temporarily
alias ce="c exec -it" # container exec
# PATH
PATH="$PATH:$HOME/bin/"
PATH="$PATH:$HOME/go/bin/"

View File

@@ -9,5 +9,17 @@ 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