From 16ea678a725c8bc3f60f6bacab390f55d212aa39 Mon Sep 17 00:00:00 2001 From: wcbing Date: Wed, 6 May 2026 13:34:56 +0800 Subject: [PATCH] update --- aliases/bat.sh | 2 ++ aliases/container.sh | 9 +++++---- aliases/main.sh | 7 +++---- aliases/proxy.sh | 6 ------ aliases/python.sh | 7 ------- bash/.bashrc | 12 ++++++++++++ fish/config.fish | 12 ++++++++++++ 7 files changed, 34 insertions(+), 21 deletions(-) create mode 100644 aliases/bat.sh delete mode 100644 aliases/proxy.sh delete mode 100644 aliases/python.sh diff --git a/aliases/bat.sh b/aliases/bat.sh new file mode 100644 index 0000000..233a661 --- /dev/null +++ b/aliases/bat.sh @@ -0,0 +1,2 @@ +# bat +alias bat="bat --theme ansi" diff --git a/aliases/container.sh b/aliases/container.sh index 7eb8f0b..3e95ff5 100644 --- a/aliases/container.sh +++ b/aliases/container.sh @@ -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" \ No newline at end of file +alias lzd="DOCKER_HOST=unix:///run/user/1000/podman/podman.sock lazydocker" diff --git a/aliases/main.sh b/aliases/main.sh index f56526b..d232e31 100644 --- a/aliases/main.sh +++ b/aliases/main.sh @@ -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" diff --git a/aliases/proxy.sh b/aliases/proxy.sh deleted file mode 100644 index 237964b..0000000 --- a/aliases/proxy.sh +++ /dev/null @@ -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" \ No newline at end of file diff --git a/aliases/python.sh b/aliases/python.sh deleted file mode 100644 index 8566ed9..0000000 --- a/aliases/python.sh +++ /dev/null @@ -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" \ No newline at end of file diff --git a/bash/.bashrc b/bash/.bashrc index 050ca50..4c03eaf 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -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/" diff --git a/fish/config.fish b/fish/config.fish index 2cb1885..a7ca047 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -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