My favorite cls (same as windows cmd), up (same as cd.. ex up 3 is like ../../../), lsalias (got it from this forum), lsfunc (list all functions), fd (find), gr (grep string)
`
#SMILEY="[\e[32m] [\e[m]"
#FROWNY="[\e[31m]ï–´ [\e[m]"
#SELECT="if [ \$? = 0 ]; then echo \"${SMILEY}\"; else echo \"${FROWNY}\"; fi"
#export PS1=" [\e[34m]\w[\e[m][\e[1;34m] `${SELECT}`ï„ [\e[00m] "
export PS1=" [\e[34m]\w[\e[m][\e[1;34m] ï„ [\e[00m] "
export GREP_COLOR="1;32"
export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig
alias lsalias='grep "alias" /Documents/SOLUS/GIT_PROJECTS/linuxScripts/bashScripts/.bashrc_vj_script'
alias dummy='============================= git =================================='
alias gita='git add '
alias gitr='git rm '
alias gitc='git commit -m'
alias gitd='git diff --color-words'
alias gitp="git push origin master"
alias gitl='git log --graph --oneline --decorate'
alias gits='git status -sb'
alias giti='echo; git log -n 12 --graph --oneline --decorate; echo; git status; echo'
alias gito='git config --get remote.origin.url'
alias gitst='git stash'
alias dummy='============================= System ==============================='
alias du='du -h --max-depth=1 | sort -hr'
alias lsblk='lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,UUID'
alias blkid='sudo blkid'
alias fdisk='sudo fdisk -l'
alias parted='sudo parted -l'
alias ls='ls -lah --group-directories-first --color=auto'
alias grep='grep --color=auto'
alias cls='printf "\033c"'
alias fd='sudo find / -name '
alias gr='sudo grep -iRl'
up() { cd $(eval printf '../'%.0s {1..$1}); }
#export _JAVA_AWT_WM_NONREPARENTING=1
alias dummy='===================================================================='
=== Create git repo ===
function vj_mkgitrepo {
curl -u "viyoriya" https://api.github.com/user/repos -d '{ "name": "${1}" }' ;
}
=== Solus ===
function vj_solgc {
git clone https://dev.getsol.us/source/${1}.git
cd ${1}
ls -hl --group-directories-first
}
alias lsfunc='declare -F | grep 'vj''
alias lsfuncName='compgen -A function | grep 'vj''
alias fetchYml="../common/Scripts/yauto.py"
alias pcp='echo $(pkg-config --variable pc_path pkg-config)'
alias dummy='===================================================================='
alias hp="htop -u nobody"
alias nanorc="ls -l /usr/share/nano/.nanorc | awk '{print \"include \" \$9;}' >> /.nanorc"
alias nanovj="ls -l /Documents/SOLUS/GIT_PROJECTS/linuxScripts/nanorc/.nanorc | awk '{print \"include \" \$9;}' >> /.nanorc"
alias neofetch='/usr/bin/neofetch && python3 /Documents/SOLUS/GIT_PROJECTS/linuxScripts/tubescript.py'
alias nqq=notepadqq
alias tldr='f() { curl cheat.sh/$1; };f'
alias dummy='===================================================================='
alias tsr='tmux kill-server'
alias tsa='tmux kill-session -a'
alias tst='tmux kill-session -t '
alias tls='tmux list-sessions'
#alias tk='pkill -f tmux'
alias m2='sudo mkdir -p /mnt/so && sudo mount /dev/sda2 /mnt/so'
alias m3='sudo mkdir -p /mnt/ma && sudo mount /dev/sda3 /mnt/ma'
alias m4='sudo mkdir -p /mnt/vo && sudo mount /dev/sda4 /mnt/vo'
alias m5l='sudo mkdir -p /mnt/lfs && sudo mount /dev/sda5 /mnt/lfs'
alias m5t='sudo mkdir -p /mnt/ta && sudo mount /dev/sda5 /mnt/ta'
alias m2u='sudo umount /mnt/so'
alias m3u='sudo umount /mnt/ma'
alias m4u='sudo umount /mnt/vo'
alias m5lu='sudo umount /mnt/lfs'
alias m5tu='sudo umount /mnt/ta'
alias usbp1='sudo chmod -R a+rwX,o-w '
alias usbp2='sudo chown -R $USER:$USER '
alias proj='cd /Documents/SOLUS/GIT_PROJECTS/'
alias smi='sudo make install'
alias sdwm='cd /Documents/SOLUS/GIT_PROJECTS/wm/suckless/dwm/'
alias ssc='sudo subl config.h'
alias dummy='====================== END ========================================'
`