sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
主题
1 2 3 4 5
# Set name of the theme to load --- ifset to "random", it will # load a random theme each time oh-my-zsh is loaded, inwhichcase, # to know which specific one was loaded, run: echo$RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ZSH_THEME="主题名称"
alias c="code ." alias ..="cd ../" alias ..l="cd ../ && ls -a" alias ..ll="cd ../ && ls -al"
alias ...='cd ../../..' alias ....='cd ../../../..' alias .....='cd ../../../..' alias .2='cd ../..' alias .3='cd ../../..' alias .4='cd ../../../..' alias .5='cd ../../../../..'
alias zshrc='nvim ~/.zshrc' alias update="source ~/.zshrc" alias cls="clear" alias vim="nvim" alias n="nvim" alias n.="nvim ." alias nc="n ~/.config/nvim/" alias h='history'
alias df="duf" alias md="mkdir"
# 连接上次会话 alias ta="tmux a" # 新会话 alias tn="tmux" # 列出所有会话 alias tls="tmux ls" # 删除tmux会话 alias td0="tmux kill-session -t 0" alias td1="tmux kill-session -t 1" alias td2="tmux kill-session -t 2" alias td3="tmux kill-session -t 3" alias td4="tmux kill-session -t 4" alias td5="tmux kill-session -t 5"
# 临时开关代理 alias offclash='unset http_proxy && unset https_proxy all_proxy' alias onclash='export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890'
# lsd alias bls="/bin/ls" alias ls="lsd" alias lsa="lsd -a" alias lt="lsd --tree" alias lta="lsd -a --tree"
# lazygit alias lg="lazygit" # dotfiles alias dt="cd ~/dotfiles && lsa"
# lsd alias bll="/bin/ls -al" alias ll='lsd -l' alias lla='lsd -al'