diff --git a/.zshrc b/.zshrc index 055f7e2..89d8093 100644 --- a/.zshrc +++ b/.zshrc @@ -172,13 +172,14 @@ _alias(){ if command_exists batcat; then alias cat="batcat --color=always -p --paging=never" alias less="batcat --paging always --color=always" - alias gd="batcat --diff" + # alias gd="batcat --diff" elif command_exists bat; then alias cat="bat --color=always -p" alias less="bat --paging always --color=always" - alias gd="bat --diff" + # alias gd="bat --diff" fi + # ─< fastfetch >──────────────────────────────────────────────────────────────────────────── if command_exists fastfetch; then alias ff="fastfetch" @@ -214,9 +215,13 @@ _alias(){ alias gm='git checkout main && git merge' alias gc="git clone --recurse-submodule" gcl() { - git clone --depth=1 "https://github.com/$*" + git clone --depth=1 "https://github.com/$1" } - alias ga="git add" + gck() { + git clone --depth=1 "https://git.k4li.de/$1" + } + alias gd="git diff" + alias ga="gd $1 && git add" alias gp="git pull --recurse-submodule" alias gms='git maintenance start' alias gsu="git submodule foreach git pull && git add . && git commit -m ' updated 📌submodules' && echo '-- Committed changes, pushing now..' && sleep 1 && git push" @@ -388,3 +393,4 @@ if check_root; then main fi source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + echo "$bat"