Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # nano .oh-my-zsh/themes/robbyrussell.zsh-theme
- # .oh-my-zsh && git stash && upgrade_oh_my_zsh
- # Install ZSH from this source :
- # sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- # sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
- # git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- # git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- nano .zshrc
- plugins=(
- git
- zsh-syntax-highlighting
- zsh-autosuggestions
- )
- PROMPT="%{$fg_bold[white]%}%n%{$fg[magenta]%}@%{$fg_bold[white]%}%m%{$fg_bold[green]%}:%d%{$fg_bold[yellow]%}% # %{$reset_color%}"
- alias ll="ls -lah"
- function lazygit() {
- find /Users/tomas/Dropbox/Python_Tools/INLINEMANUAL/infra/ -name ".DS_Store" -delete
- find . -name ".DS_Store" -delete
- git add .
- git commit -a -m "$1" && git push
- }
- ####################################################################
- export ZSH=/Users/tomas/.oh-my-zsh
- ZSH_THEME="robbyrussell"
- # HYPHEN_INSENSITIVE="true"
- # DISABLE_AUTO_UPDATE="true"
- # Uncomment the following line to disable auto-setting terminal title.
- # DISABLE_AUTO_TITLE="true"
- # Uncomment the following line to display red dots whilst waiting for completion.
- # COMPLETION_WAITING_DOTS="true"
- # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
- plugins=(
- git
- zsh-syntax-highlighting
- zsh-autosuggestions
- )
- HISTFILE=/Users/tomas/Dropbox/Praca/tech/zsh/history
- SAVEHIST=30000
- HISTSIZE=5000
- HIST_STAMPS="yyyy-mm-dd"
- source $ZSH/oh-my-zsh.sh
- export LANG=en_US.UTF-8
- export EDITOR='nano'
- function lazygit() {
- find . -name ".DS_Store" -delete
- git add .
- git commit -a -m "$1" && git push
- }
- # alias docker-cleanup="docker rm -f $(docker ps -a -q) ; docker rmi -f $(docker images -q)"
- alias ll="ls -lah"
- alias PT="cd /Users/tomas/Dropbox/Python_Tools"
- alias HB="/Users/tomas/Dropbox/Python_Tools/hostbeat"
- alias hb="ssh root@app.hostbeat.info"
- alias sp="ssh tomas@mng.siacplus.sk"
- alias fing="sudo fing -n 192.168.100.1/24 -r 20 -d false -o table,text,console"
- export PATH="/usr/local/bin:$PATH"
- export PATH="/usr/local/sbin:$PATH"
- export PATH="/usr/local/Cellar/python@3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/bin:$PATH"
- PROMPT="%{$fg_bold[white]%}%n%{$fg[magenta]%}@%{$fg_bold[white]%}%m%{$fg_bold[green]%}:%d%{$fg_bold[yellow]%}% # %{$reset_color%}"
- export PATH="/usr/local/opt/libpq/bin:$PATH"
- if [[ $PWD/ = /Users/tomas/ ]]
- then
- cd /Users/tomas/Downloads/
- fi
- function cd() {
- builtin cd "$@"
- if [[ -z "$VIRTUAL_ENV" ]] ; then
- if [[ -d ./venv ]] ; then
- source ./venv/bin/activate
- fi
- else
- parentdir="$(dirname "$VIRTUAL_ENV")"
- if [[ "$PWD"/ != "$parentdir"/* ]] ; then
- deactivate
- fi
- fi
- }
Add Comment
Please, Sign In to add comment