Last active
March 27, 2022 12:10
-
-
Save NitsanBaleli/9089032 to your computer and use it in GitHub Desktop.
.zshrc
This file contains hidden or 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
| # Path to your oh-my-zsh configuration. | |
| ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| #ZSH_THEME="cobalt2" | |
| ZSH_THEME="robbyrussell" | |
| #ZSH_THEME="af-magic" | |
| # ZSH_THEME="spaceship" | |
| #ZSH_THEME="refined" | |
| # Example aliases | |
| alias zshconfig="cc ~/.zshrc &" | |
| alias python=python3 | |
| alias pip=pip3 | |
| alias livessh="python3 ~/projects/**/**Cloud/scripts/utils/ssh.py" | |
| alias freespace="df -h | grep /dev/" | |
| # alias ohmyzsh="mate ~/.oh-my-zsh" | |
| # Set to this to use case-sensitive completion | |
| # CASE_SENSITIVE="true" | |
| # Uncomment this to disable bi-weekly auto-update checks | |
| # DISABLE_AUTO_UPDATE="true" | |
| # Uncomment to change how often before auto-updates occur? (in days) | |
| export UPDATE_ZSH_DAYS=7 | |
| # Uncomment following line if you want to disable colors in ls | |
| # DISABLE_LS_COLORS="true" | |
| # Uncomment following line if you want to disable autosetting terminal title. | |
| # DISABLE_AUTO_TITLE="true" | |
| # Uncomment following line if you want to disable command autocorrection | |
| DISABLE_CORRECTION="true" | |
| # Uncomment following line if you want red dots to be displayed while waiting for completion | |
| # COMPLETION_WAITING_DOTS="true" | |
| # Uncomment following line if you want to disable marking untracked files under | |
| # VCS as dirty. This makes repository status check for large repositories much, | |
| # much faster. | |
| # DISABLE_UNTRACKED_FILES_DIRTY="true" | |
| # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
| # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
| # Example format: plugins=(rails git textmate ruby lighthouse) | |
| plugins=(zsh-autosuggestions) | |
| source $ZSH/oh-my-zsh.sh | |
| # Customize to your needs... | |
| export PATH=$PATH:/usr/lib/x86_64-linux-gnu/qt4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/.local/bin:/usr/bin/python:/usr/bin/python3 | |
| alias "zz"="source ~/.zshrc" | |
| alias "cc"="code ." | |
| alias "nau"="nautilus . &" | |
| alias "client"="source ~/scripts/./client.sh" | |
| alias "shell_plus"="cd ~/projects/**/**Cloud/ && python3 manage.py shell_plus" | |
| alias "sysinfo"="sudo lshw | less" | |
| alias "lsblk"="lsblk" #check usb drives | |
| alias "book"="source ~/scripts/./book.sh" | |
| alias "bsync-server"="browser-sync start --server --files='**/*' --directory" | |
| alias "speed-test"="curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -" | |
| alias "uu"="~/scripts/apt-update-upgrade.mjs" | |
| alias "runclient"="venvsource && cd /home/nitsan/projects/**/**Cloud/client && npm run serve:hot" | |
| alias runserver="venvsource && cd /home/nitsan/projects/**/**Cloud && python3 manage.py runserver 127.0.0.1:8000" | |
| alias "venvsource"="source /home/nitsan/virtual/3.6/bin/activate" | |
| alias livetail='python3 /home/nitsan/projects/**/**Cloud/scripts/utils/tail.py' | |
| alias readme="code ~/projects/global-readme.md -r" | |
| function hig() { | |
| history | grep $1 | less | |
| } | |
| function bsync() { | |
| browser-sync start --no-ui -s --index $1 --files './**/*' | |
| } | |
| function gitc() { | |
| git add -A && git commit -m "$1" | |
| } | |
| source ~/z/z.sh | |
| # fnm | |
| export PATH=/home/nitsan/.fnm:$PATH | |
| eval "`fnm env`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment