Created
September 8, 2021 13:49
-
-
Save athamour1/5c3143ff60aafd5ba980cbd34ae55d63 to your computer and use it in GitHub Desktop.
personal .zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use powerline | |
USE_POWERLINE="true" | |
# Source manjaro-zsh-configuration | |
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then | |
source /usr/share/zsh/manjaro-zsh-config | |
fi | |
# Use manjaro zsh prompt | |
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then | |
source /usr/share/zsh/manjaro-zsh-prompt | |
fi | |
# Exports for android Enviroment | |
export KUBECONFIG=$KUBECONFIG:$HOME/.kube/config:$HOME/.kube/configs/kub-learn-kubeconfig.yaml | |
export ANDROID_HOME=$HOME/Android/Sdk | |
export PATH=$PATH:$ANDROID_HOME/emulator | |
export PATH=$PATH:$ANDROID_HOME/tools | |
export PATH=$PATH:$ANDROID_HOME/tools/bin | |
export PATH=$PATH:$ANDROID_HOME/platform-tools | |
# export JAVA_HOME=/usr/lib/jvm/java-8-openjdk/jre | |
export PATH=$PATH:/opt/lampp | |
ex () | |
{ | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xjf $1 ;; | |
*.tar.gz) tar xzf $1 ;; | |
*.bz2) bunzip2 $1 ;; | |
*.rar) unrar x $1 ;; | |
*.gz) gunzip $1 ;; | |
*.tar) tar xf $1 ;; | |
*.tbz2) tar xjf $1 ;; | |
*.tgz) tar xzf $1 ;; | |
*.zip) unzip $1 ;; | |
*.Z) uncompress $1;; | |
*.7z) 7z x $1 ;; | |
*) echo "'$1' cannot be extracted via ex()" ;; | |
esac | |
else | |
echo "'$1' is not a valid file" | |
fi | |
} | |
# some esentials commands | |
alias refresh='. ~/.zshrc' | |
alias re='refresh' | |
alias here='ranger .' | |
alias clean='clear && neofetch' | |
alias home='cd && clear' | |
alias editz='code ~/.zshrc' | |
# TeamViewer Aliasses | |
alias team='teamviewer --daemon start' | |
# Andreoid Dev Aliasses | |
alias pixel4='emulator -avd Pixel_4_API_29_TI_Ein_Touto' | |
alias re="npx react-native start" | |
alias an='npx react-native run-android' | |
# DEN EXW IDEA TI SKATA EINAI AYTO NA TO TSEKARW | |
alias PotreeConverter='~/Develope/PotreeConverter/build/PotreeConverter' | |
# LETS SPICE UP THINGS | |
alias ls='exa --long --header --git --classify' | |
alias lst='exa --long --header --git --classify --tree --level=2' | |
# Git Aliasses | |
alias g="git status" | |
alias ga="git add" | |
alias gaa="git add ." | |
alias gau="git add -u" | |
alias gc="git commit -m" | |
alias gca="git commit -am" | |
alias gb="git branch" | |
alias gbd="git branch -d" | |
alias gbb="git branch -b" | |
alias gco="git checkout" | |
alias gcob="git checkout -b" | |
alias gt="git stash" | |
alias gta="git stash apply" | |
alias gm="git merge" | |
alias gmn="git merge --no-ff" | |
alias gr="git rebase" | |
alias gl="git log --oneline --decorate --graph" | |
alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" | |
alias glga="git log --graph --oneline --all --decorate" | |
alias gb="git branch" | |
alias gs="git show" | |
alias gd="diff --color --color-words --abbrev" | |
alias gdc="git diff --cached" | |
alias gbl="git blame" | |
alias gps="git push -u origin" | |
alias gpsd="git push -u origin --delete" | |
alias gpt="git push -u origin thanos" | |
alias gpm="git push -u origin master" | |
alias gpl="git pull" | |
alias gb="git branch" | |
alias gc="git commit" | |
alias gd="git diff" | |
alias gone="git checkout " | |
alias gk="gitk --all&" | |
alias gx="gitx --all" | |
alias regit='echo g="git status" && echo ga="git add" && echo gaa="git add ." && echo gau="git add -u" && echo gc="git commit -m" && echo gca="git commit -am" && echo gb="git branch" && echo gbd="git branch -d" && echo gbb="git branch -b" && echo gco="git checkout" && echo gcob="git checkout -b" && echo gt="git stash" && echo gta="git stash apply" && echo gm="git merge" && echo gr="git rebase" && echo gl="git log --oneline --decorate --graph" && echo glog="git log --color --graph --pretty=format: %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset --abbrev-commit --" && echo glga="git log --graph --oneline --all --decorate" && echo gb="git branch" && echo gs="git show" && echo gd="diff --color --color-words --abbrev" && echo gdc="git diff --cached" && echo gbl="git blame" && echo gps="git push -u origin" && echo gpt="git push -u origin thanos" && echo gpm="git push -u origin master" && echo gpl="git pull" && echo gb="git branch" && echo gc="git commit" && echo gd="git diff" && echo gone="git checkout " && echo gk="gitk --all&" && echo gx="gitx --all"' | |
alias git_reminder='echo gaa gca gpm' | |
alias a-l="-la" | |
# some project aliasses | |
alias classy='cd ~/Develop/CLASSY && clear && onefetch && ls -al' | |
alias classydev='classy && quasar dev' | |
alias iot='cd ~/Develop/Iot-Dashboard-Backend && clear && onefetch && ls -al' | |
# loopback mic aliases for the work | |
alias monitmic='pactl load-module module-loopback' | |
alias unmonitmic='pactl unload-module module-loopback' | |
# some ssh aliasses | |
alias sshclassy='ssh deploy@162.55.52.6' | |
alias sshdexiosis='ssh root@135.181.150.185' | |
# >>> conda initialize >>> | |
# !! Contents within this block are managed by 'conda init' !! | |
__conda_setup="$('/home/thanos/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" | |
if [ $? -eq 0 ]; then | |
eval "$__conda_setup" | |
else | |
if [ -f "/home/thanos/anaconda3/etc/profile.d/conda.sh" ]; then | |
. "/home/thanos/anaconda3/etc/profile.d/conda.sh" | |
else | |
export PATH="/home/thanos/anaconda3/bin:$PATH" | |
fi | |
fi | |
unset __conda_setup | |
# <<< conda initialize <<< | |
if [ -d .git ]; then | |
clear && onefetch && ls -la | |
else | |
clean | |
fi; | |
source /usr/share/nvm/init-nvm.sh | |
export PATH=$PATH:~/.yarn/bin | |
# export PATH="$(yarn global bin):$PATH" | |
export PATH="~/.yarn/bin:$PATH" | |
export PYENV_ROOT="$HOME/.pyenv" | |
export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init --path)" | |
eval "$(pyenv init -)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment