updated shell
This commit is contained in:
1 parent
5ffe21dd45
commit
3838f6b8af
2 files changed
+169
-95
No files matched your search
@@ -0,0 +1,74 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#--- reset colors ---------------
|
||||||
|
RESET="\033[0m"
|
||||||
|
#--------------------------------
|
||||||
|
#--------- regularcolrs ---------
|
||||||
|
GREEN="\033[0;32m" #GREEN
|
||||||
|
BLUE="\033[0;34m" #BLUE
|
||||||
|
YELLOW="\033[1;33m" #YELLOW
|
||||||
|
RED="\033[0;31m" #RED
|
||||||
|
BLACK="\033[0;30m" #BLACK
|
||||||
|
PURPLE="\033[0;35m" #PURPLE
|
||||||
|
CYAN="\033[0;36m" #CYAN
|
||||||
|
WHITE="\033[0;37m" #WHITE
|
||||||
|
#--------------------------------
|
||||||
|
#-------- bold ------------------
|
||||||
|
BBLACK="\033[1;30m" #BLACK
|
||||||
|
BRED="\033[1;31m" #RED
|
||||||
|
BGREEN="\033[1;32m" #GREEN
|
||||||
|
BYELLOW="\033[1;33m" #YELLOW
|
||||||
|
BBLUE="\033[1;34m" #BLUE
|
||||||
|
BPURPLE="\033[1;35m" #PURPLE
|
||||||
|
BCYAN="\033[1;36m" #CYAN
|
||||||
|
BWHITE="\033[1;37m" #WHITE
|
||||||
|
#--------------------------------
|
||||||
|
#-------- Underline -------------
|
||||||
|
UBLACK="\033[4;30m" #BLACK
|
||||||
|
URED="\033[4;31m" #RED
|
||||||
|
UGREEN="\033[4;32m" #GREEN
|
||||||
|
UYELLOW="\033[4;33m" #YELLOW
|
||||||
|
UBLUE="\033[4;34m" #BLUE
|
||||||
|
UPURPLE="\033[4;35m" #PURPLE
|
||||||
|
UCYAN="\033[4;36m" #CYAN
|
||||||
|
UWHITE="\033[4;37m" #WHITE
|
||||||
|
#--------------------------------
|
||||||
|
#--------- Background -----------
|
||||||
|
ON_BLACK="\033[40m" #BLACK
|
||||||
|
ON_RED="\033[41m" #RED
|
||||||
|
ON_GREEN="\033[42m" #GREEN
|
||||||
|
ON_YELLOW="\033[43m" #YELLOW
|
||||||
|
ON_BLUE="\033[44m" #BLUE
|
||||||
|
ON_PURPLE="\033[45m" #PURPLE
|
||||||
|
ON_CYAN="\033[46m" #CYAN
|
||||||
|
ON_WHITE="\033[47m" #WHITE
|
||||||
|
#--------------------------------
|
||||||
|
#------ HighIntensity -----------
|
||||||
|
IBLACK="\033[0;90m" #BLACK
|
||||||
|
IRED="\033[0;91m" #RED
|
||||||
|
IGREEN="\033[0;92m" #GREEN
|
||||||
|
IYELLOW="\033[0;93m" #YELLOW
|
||||||
|
IBLUE="\033[0;94m" #BLUE
|
||||||
|
IPURPLE="\033[0;95m" #PURPLE
|
||||||
|
ICYAN="\033[0;96m" #CYAN
|
||||||
|
IWHITE="\033[0;97m" #WHITE
|
||||||
|
#--------------------------------
|
||||||
|
#------ BoldHighIntensity -------
|
||||||
|
BIBLACK="\033[1;90m" #BLACK
|
||||||
|
BIRED="\033[1;91m" #RED
|
||||||
|
BIGREEN="\033[1;92m" #GREEN
|
||||||
|
BIYELLOW="\033[1;93m" #YELLOW
|
||||||
|
BIBLUE="\033[1;94m" #BLUE
|
||||||
|
BIPURPLE="\033[1;95m" #PURPLE
|
||||||
|
BICYAN="\033[1;96m" #CYAN
|
||||||
|
BIWHITE="\033[1;97m" #WHITE
|
||||||
|
#--------------------------------
|
||||||
|
#--- HighIntensitybackgrounds ---
|
||||||
|
ON_IBLACK="\033[0;100m" #BLACK
|
||||||
|
ON_IRED="\033[0;101m" #RED
|
||||||
|
ON_IGREEN="\033[0;102m" #GREEN
|
||||||
|
ON_IYELLOW="\033[0;103m" #YELLOW
|
||||||
|
ON_IBLUE="\033[0;104m" #BLUE
|
||||||
|
ON_IPURPLE="\033[0;105m" #PURPLE
|
||||||
|
ON_ICYAN="\033[0;106m" #CYAN
|
||||||
|
ON_IWHITE="\033[0;107m" #WHITE
|
||||||
|
#--------------------------------
|
||||||
+95
-95
@@ -1,96 +1,96 @@
|
|||||||
|
#--- path -------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
#--- path ---
|
|
||||||
export PATH=$PATH:~/dotfiles/bin:~/dotfiles/hypr/bin:~/dotfiles/dwm/bin/:~/.cargo/bin
|
export PATH=$PATH:~/dotfiles/bin:~/dotfiles/hypr/bin:~/dotfiles/dwm/bin/:~/.cargo/bin
|
||||||
export GTK2_RC_FILES=~/.config/gtk-2.0/gtkrc
|
export GTK2_RC_FILES=~/.config/gtk-2.0/gtkrc # gtk2 theme
|
||||||
#------------
|
#----------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
#--- colors -----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
#--- sys ---
|
. ~/dotfiles/shell/colors.sh # include bash colors
|
||||||
alias psa='busybox ps' # show all processes
|
#----------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias c='clear' # clear terminal screen
|
#--- sys --------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias e='echo' # print in terminal
|
alias psa='busybox ps' # show all processes
|
||||||
alias s='source' # source
|
alias c='clear' # clear terminal screen
|
||||||
alias kcat='kitty icat' # show image in kitty terminal
|
alias e='echo' # print in terminal
|
||||||
alias ff='fastfetch' # system data
|
alias s='source' # source
|
||||||
alias una='uname -a' # system name
|
alias kcat='kitty icat' # show image in kitty terminal
|
||||||
alias ifcnf='ifconfig' # ifconfig
|
alias ff='fastfetch' # system data
|
||||||
#--- pacman ---
|
alias una='uname -a' # system name
|
||||||
alias p='sudo pacman' # pacman
|
alias ifcnf='ifconfig' # ifconfig
|
||||||
alias psy='sudo pacman -Sy' # update repositories
|
alias sudo='sudo -p "Give me your fucking password: "' # sudo prompt alias
|
||||||
alias psyu='sudo pacman -Syu' # upgrade system
|
#--- pacman -----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias pi='sudo pacman -S' # install package
|
alias p='sudo pacman' # pacman
|
||||||
alias psc='sudo pacman -Ss' # search package in repository
|
alias psy='sudo pacman -Sy' # update repositories
|
||||||
alias pqdtq='sudo pacman -Qdtq' # list files without dependencies
|
alias psyu='sudo pacman -Syu' # upgrade system
|
||||||
alias pq='sudo pacman -Q' # list installed packages
|
alias pi='sudo pacman -S' # install package
|
||||||
alias pql='sudo pacman -Ql' # list files in packages
|
alias psc='sudo pacman -Ss' # search package in repository
|
||||||
alias prm='sudo pacman -R' # delete pacman package
|
alias pqdtq='sudo pacman -Qdtq' # list files without dependencies
|
||||||
alias prns='sudo pacman -Rns' # delete pacman package with all dependencies
|
alias pq='sudo pacman -Q' # list installed packages
|
||||||
#--------------
|
alias pql='sudo pacman -Ql' # list files in packages
|
||||||
#--- apt ---
|
alias prm='sudo pacman -R' # delete pacman package
|
||||||
alias aptu='sudo apt update' # update apt repositories
|
alias prns='sudo pacman -Rns' # delete pacman package with all dependencies
|
||||||
alias apti='sudo apt install -y' # install apt package
|
#----------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias aptui='sudo apt upgrade -y' # upgrade apt packages
|
#--- apt --------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias aptrm='sudo apt remove -y' # remove apt package
|
alias aptu='sudo apt update' # update apt repositories
|
||||||
alias aptautorm='sudo apt autoremove -y' # remove apt package with dependencies
|
alias apti='sudo apt install -y' # install apt package
|
||||||
#-----------
|
alias aptui='sudo apt upgrade -y' # upgrade apt packages
|
||||||
alias ipr='ip route' # show routes
|
alias aptrm='sudo apt remove -y' # remove apt package
|
||||||
alias ipa='ip addr' # show addresses
|
alias aptautorm='sudo apt autoremove -y' # remove apt package with dependencies
|
||||||
alias ipl='ip link' # show links
|
#----------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias sctl='systemctl' # systemctl
|
alias ipr='ip route' # show routes
|
||||||
alias sctls='systemctl start' # service start
|
alias ipa='ip addr' # show addresses
|
||||||
alias sctlst='systemctl status' # service status
|
alias ipl='ip link' # show links
|
||||||
alias sctlp='systemctl stop' # service stop
|
alias sctl='systemctl' # systemctl
|
||||||
alias H='Hyprland' # start Hyprland
|
alias sctls='systemctl start' # service start
|
||||||
alias sx='startx' # startx - start xorg
|
alias sctlst='systemctl status' # service status
|
||||||
#-----------
|
alias sctlp='systemctl stop' # service stop
|
||||||
|
alias H='Hyprland' # start Hyprland
|
||||||
#--- git ---
|
alias sx='startx' # startx - start xorg
|
||||||
alias g='git' # git
|
#----------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias ga='git add' # add unstaged changes
|
#--- git --------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias gaa='git add --all' # add all unstaged changes
|
alias g='git' # git
|
||||||
alias gb='git branch' # create branch
|
alias ga='git add' # add unstaged changes
|
||||||
alias gba='git branch --all' # list all branches
|
alias gaa='git add --all' # add all unstaged changes
|
||||||
alias gbd='git branch --delete' # delete branch
|
alias gb='git branch' # create branch
|
||||||
alias gbD='git branch --delete --force' # force delete branch
|
alias gba='git branch --all' # list all branches
|
||||||
alias gco='git checkout' # checkout to another branch
|
alias gbd='git branch --delete' # delete branch
|
||||||
alias gcb='git checkout -b' # checkout and create branch
|
alias gbD='git branch --delete --force' # force delete branch
|
||||||
alias gc='git clone' # clone from remote repository
|
alias gco='git checkout' # checkout to another branch
|
||||||
alias gcl='git clone --recursive' # clone recursive with submodules
|
alias gcb='git checkout -b' # checkout and create branch
|
||||||
alias gcam='git commit --all --message' # commit with commit message
|
alias gc='git clone' # clone from remote repository
|
||||||
alias gd='git diff' # create diff
|
alias gcl='git clone --recursive' # clone recursive with submodules
|
||||||
alias gcf='git config --list' # show config
|
alias gcam='git commit --all --message' # commit with commit message
|
||||||
alias gf='git fetch' # fetch from remote repository
|
alias gd='git diff' # create diff
|
||||||
alias ghh='git help' # help
|
alias gcf='git config --list' # show config
|
||||||
alias glgg='git log --graph' # log with graph
|
alias gf='git fetch' # fetch from remote repository
|
||||||
alias glg='git log --stat' # log with stat
|
alias ghh='git help' # help
|
||||||
alias gm='git merge' # merge branches
|
alias glgg='git log --graph' # log with graph
|
||||||
alias gl='git pull' # pull from upstream repository
|
alias glg='git log --stat' # log with stat
|
||||||
alias gpr='git pull --rebase' # pull from upstream repository and rebase local changes
|
alias gm='git merge' # merge branches
|
||||||
alias gp='git push' # push to upstream repository
|
alias gl='git pull' # pull from upstream repository
|
||||||
alias gpo='git push --set-upstream origin' # push to upstream repository and set upstream branch
|
alias gpr='git pull --rebase' # pull from upstream repository and rebase local changes
|
||||||
alias gra='git remote add' # add remote repository
|
alias gp='git push' # push to upstream repository
|
||||||
alias grrm='git remote remove' # remove remote repository
|
alias gpo='git push --set-upstream origin' # push to upstream repository and set upstream branch
|
||||||
alias gstall='git stash --all' # stash all in repository
|
alias gra='git remote add' # add remote repository
|
||||||
alias gstc='git stash clear' # clear git stash
|
alias grrm='git remote remove' # remove remote repository
|
||||||
alias gst='git status' # status repository
|
alias gstall='git stash --all' # stash all in repository
|
||||||
#-----------
|
alias gstc='git stash clear' # clear git stash
|
||||||
|
alias gst='git status' # status repository
|
||||||
#--- docker ---
|
#----------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias dpa='docker ps -a' # list all docker containers
|
#--- docker -----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias dp='docker ps' # list active docker containers
|
alias dpa='docker ps -a' # list all docker containers
|
||||||
alias dia='docker images -a' # list all docker images
|
alias dp='docker ps' # list active docker containers
|
||||||
alias di='docker images' # list docker images
|
alias dia='docker images -a' # list all docker images
|
||||||
alias dcrm='docker container rm' # remove docker container
|
alias di='docker images' # list docker images
|
||||||
alias dirm='docker image rm' # remove docker image
|
alias dcrm='docker container rm' # remove docker container
|
||||||
alias dr='docker run' # run docker image as container
|
alias dirm='docker image rm' # remove docker image
|
||||||
alias ds='docker start' # start docker container
|
alias dr='docker run' # run docker image as container
|
||||||
alias dst='docker stop' # stop docker container
|
alias ds='docker start' # start docker container
|
||||||
alias dspa='docker system prune -a' # delete all docker data
|
alias dst='docker stop' # stop docker container
|
||||||
alias dcaq='docker ps -aq' # stop all containers
|
alias dspa='docker system prune -a' # delete all docker data
|
||||||
#--------------
|
alias dcaq='docker ps -aq' # stop all containers
|
||||||
#--- bluetooth ---
|
#----------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias bctl="bluetoothctl"
|
#--- bluetooth --------------------------------------------------------------------------------------------------------------------------------------
|
||||||
alias bctlc="bluetoothctl connect"
|
alias bctl="bluetoothctl" # bluetoothctl
|
||||||
alias bctld="bluetoothctl disconnect"
|
alias bctlc="bluetoothctl connect" # connect bluetooth device
|
||||||
alias bctll="bluetoothctl devices"
|
alias bctld="bluetoothctl disconnect" # disconnect bluetooth device
|
||||||
alias bctls="bluetoothctl scan on"
|
alias bctll="bluetoothctl devices" # show bluetooth devices
|
||||||
#-----------------
|
alias bctls="bluetoothctl scan on" # scan bluetooth devices
|
||||||
|
#----------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
Reference in new issue
Block a user