update
This commit is contained in:
2
aliases/bat.sh
Normal file
2
aliases/bat.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# bat
|
||||||
|
alias bat="bat --theme ansi"
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
alias c=podman
|
alias c=podman
|
||||||
alias crt="c run -it --rm" # container run temporarily
|
# alias crt="c run -it --rm" # container run temporarily
|
||||||
alias ce="c exec -it" # container exec
|
# alias ce="c exec -it" # container exec
|
||||||
#alias nginx="c exec nginx nginx"
|
|
||||||
|
# alias nginx="c exec nginx nginx"
|
||||||
|
|
||||||
# alias lzd="DOCKER_HOST=unix:///run/podman/podman.sock lazydocker"
|
# alias lzd="DOCKER_HOST=unix:///run/podman/podman.sock lazydocker"
|
||||||
alias lzd="DOCKER_HOST=unix:///run/user/1000/podman/podman.sock lazydocker"
|
alias lzd="DOCKER_HOST=unix:///run/user/1000/podman/podman.sock lazydocker"
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
# List file
|
# List file
|
||||||
alias l="ls -a"
|
alias l="ls -A"
|
||||||
alias la="ls -a"
|
alias la="ls -lhA --time-style long-iso"
|
||||||
alias ll="ls -lh"
|
alias ll="ls -lh --time-style long-iso"
|
||||||
alias lla="ls -alh"
|
|
||||||
|
|
||||||
# Directory and File
|
# Directory and File
|
||||||
alias mkdir="mkdir -pv"
|
alias mkdir="mkdir -pv"
|
||||||
|
|||||||
@@ -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"
|
|
||||||
@@ -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"
|
|
||||||
12
bash/.bashrc
12
bash/.bashrc
@@ -16,6 +16,18 @@ for i in $(ls $Profile_PATH/aliases); do
|
|||||||
. $Profile_PATH/aliases/$i
|
. $Profile_PATH/aliases/$i
|
||||||
done
|
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="$PATH:$HOME/bin/"
|
PATH="$PATH:$HOME/bin/"
|
||||||
PATH="$PATH:$HOME/go/bin/"
|
PATH="$PATH:$HOME/go/bin/"
|
||||||
|
|||||||
@@ -9,5 +9,17 @@ for i in $(ls $Profile_PATH/aliases/)
|
|||||||
. $Profile_PATH/aliases/$i
|
. $Profile_PATH/aliases/$i
|
||||||
end
|
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
|
# PATH
|
||||||
set -U fish_user_paths $HOME/.local/bin $HOME/go/bin $HOME/.local/share/JetBrains/Toolbox/scripts
|
set -U fish_user_paths $HOME/.local/bin $HOME/go/bin $HOME/.local/share/JetBrains/Toolbox/scripts
|
||||||
|
|||||||
Reference in New Issue
Block a user