From f9e0a4e59977c78675b5ac4c42cdaa45cee0fcbc Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Tue, 24 Sep 2024 15:42:01 +0700 Subject: [PATCH] shell/sources.sh comments --- shell/source.sh | 109 +++++++++++++++++++++++++----------------------- 1 file changed, 57 insertions(+), 52 deletions(-) diff --git a/shell/source.sh b/shell/source.sh index 1ed7ac5..3b18cf0 100644 --- a/shell/source.sh +++ b/shell/source.sh @@ -2,62 +2,67 @@ export PATH=$PATH:~/dotfiles/bin:~/dotfiles/hypr/bin:~/dotfiles/dwm/bin/:~/.cargo/bin #--- sys --- -alias psa='busybox ps' -alias c='clear' -alias e='echo' -alias s='source' -alias kcat='kitty icat' -alias ff='fastfetch' -alias una='uname -a' -alias ifcnf='ifconfig' -alias p='sudo pacman' -alias psy='sudo pacman -Sy' -alias psyu='sudo pacman -Syu' -alias pi='sudo pacman -S' -alias psc='sudo pacman -Ss' -alias ipr='ip route' -alias ipa='ip addr' -alias ipl='ip link' +alias psa='busybox ps' # show all processes +alias c='clear' # clear terminal screen +alias e='echo' # print in terminal +alias s='source' # source +alias kcat='kitty icat' # show image in kitty terminal +alias ff='fastfetch' # system data +alias una='uname -a' # system name +alias ifcnf='ifconfig' # ifconfig +alias p='sudo pacman' # pacman +alias psy='sudo pacman -Sy' # update repositories +alias psyu='sudo pacman -Syu' # upgrade system +alias pi='sudo pacman -S' # install package +alias psc='sudo pacman -Ss' # search package in repository +alias ipr='ip route' # show routes +alias ipa='ip addr' # show addresses +alias ipl='ip link' # show links +alias sctl='systemctl' # systemctl +alias sctls='systemctl start' # service start +alias sctlst='systemctl status' # service status +alias sctlp='systemctl stop' # service stop #----------- #--- git --- -alias g='git' -alias ga='git add' -alias gaa='git add --all' -alias gb='git branch' -alias gba='git branch --all' -alias gbd='git branch --delete' -alias gbD='git branch --delete --force' -alias gco='git checkout' -alias gcb='git checkout -b' -alias gc='git clone' -alias gcl='git clone --recursive' -alias gcam='git commit --all --message' -alias gd='git diff' -alias gcf='git config --list' -alias gf='git fetch' -alias ghh='git help' -alias glgg='git log --graph' -alias glg='git log --stat' -alias gm='git merge' -alias gl='git pull' -alias gpr='git pull --rebase' -alias gp='git push' -alias gpo='git push --set-upstream origin' -alias gra='git remote add' -alias grrm='git remote remove' -alias gstall='git stash --all' -alias gst='git status' +alias g='git' # git +alias ga='git add' # add unstaged changes +alias gaa='git add --all' # add all unstaged changes +alias gb='git branch' # create branch +alias gba='git branch --all' # list all branches +alias gbd='git branch --delete' # delete branch +alias gbD='git branch --delete --force' # force delete branch +alias gco='git checkout' # checkout to another branch +alias gcb='git checkout -b' # checkout and create branch +alias gc='git clone' # clone from remote repository +alias gcl='git clone --recursive' # clone recursive with submodules +alias gcam='git commit --all --message' # commit with commit message +alias gd='git diff' # create diff +alias gcf='git config --list' # show config +alias gf='git fetch' # fetch from remote repository +alias ghh='git help' # help +alias glgg='git log --graph' # log with graph +alias glg='git log --stat' # log with stat +alias gm='git merge' # merge branches +alias gl='git pull' # pull from upstream repository +alias gpr='git pull --rebase' # pull from upstream repository and rebase local changes +alias gp='git push' # push to upstream repository +alias gpo='git push --set-upstream origin' # push to upstream repository and set upstream branch +alias gra='git remote add' # add remote repository +alias grrm='git remote remove' # remove remote repository +alias gstall='git stash --all' # stash all in repository +alias gst='git status' # status repository #----------- #--- docker --- -alias dpa='docker ps -a' -alias dp='docker ps' -alias dia='docker images -a' -alias di='docker images' -alias dcrm='docker container rm' -alias dirm='docker image rm' -alias dr='docker run' -alias ds='docker start' -alias dst='docker stop' +alias dpa='docker ps -a' # list all docker containers +alias dp='docker ps' # list active docker containers +alias dia='docker images -a' # list all docker images +alias di='docker images' # list docker images +alias dcrm='docker container rm' # remove docker container +alias dirm='docker image rm' # remove docker image +alias dr='docker run' # run docker image as container +alias ds='docker start' # start docker container +alias dst='docker stop' # stop docker container +alias dspa='docker system prune -a' # delete all docker data #--------------