addet git clone with organisaztion/repository
This commit is contained in:
parent
d8a3e18fdf
commit
a662d02e85
1 changed files with 10 additions and 4 deletions
14
.zshrc
14
.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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue