Last active
December 19, 2023 19:19
-
-
Save imvasen/69f672b0605c31ca9aeea563a61dad1a to your computer and use it in GitHub Desktop.
Custom confs
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
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="$HOME/.oh-my-zsh/" | |
| # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
| ZSH_THEME="ivasen" | |
| # CASE_SENSITIVE="true" | |
| # HYPHEN_INSENSITIVE="true" | |
| # zstyle ':omz:update' mode disabled # disable automatic updates | |
| # zstyle ':omz:update' mode auto # update automatically without asking | |
| # zstyle ':omz:update' mode reminder # just remind me to update when it's time | |
| # zstyle ':omz:update' frequency 13 | |
| # DISABLE_MAGIC_FUNCTIONS="true" | |
| # DISABLE_LS_COLORS="true" | |
| # DISABLE_AUTO_TITLE="true" | |
| # ENABLE_CORRECTION="true" | |
| # COMPLETION_WAITING_DOTS="true" | |
| # DISABLE_UNTRACKED_FILES_DIRTY="true" | |
| # ZSH_CUSTOM=/path/to/new-custom-folder | |
| # Which python should be specified before virtualenvwrapper plugin inits | |
| # VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 | |
| # Plugins | |
| plugins=(git virtualenv docker-compose pass) | |
| ZSH_THEME_VIRTUALENV_PREFIX='( :' | |
| ZSH_THEME_VIRTUALENV_SUFFIX=')' | |
| source $ZSH/oh-my-zsh.sh | |
| # User configuration | |
| export LANGUAGE=en_US.UTF-8 | |
| export LC_ALL=en_US.UTF-8 | |
| export GPG_TTY=$(tty) | |
| # Aliases | |
| alias asplex='sudo -u plex' | |
| alias git-tree='git log --all --graph --decorate --oneline' | |
| alias tm='tmux' | |
| alias nvtop='watch -n 1 nvidia-smi' | |
| alias nettop='speedometer -r enp5s0 -t enp5s0' | |
| alias cat=bat | |
| alias ping=gping | |
| alias vi=vim | |
| alias i='yay -S' | |
| alias sctl='sudo systemctl' | |
| alias ls=exa | |
| myip() { dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}' } | |
| h() { curl cheat.sh/$1 } | |
| export EDITOR='vim' | |
| export PATH=$PATH:~/.bin | |
| # VNC Stuff | |
| export PATH=/opt/TurboVNC/bin:$PATH | |
| export DISPLAY=:1 | |
| # System wide env vars | |
| source ~/.profile |
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
| # | |
| local icon="" | |
| if [ "$OSTYPE" = "darwin21.0" ]; then | |
| icon=" " | |
| elif [ "$OSTYPE" = "linux-gnu" ]; then | |
| icon=" " | |
| else | |
| icon=" " | |
| fi | |
| local ret_status="%B%F{%(?:green:red)}$icon%f%b" | |
| function get_pwd(){ | |
| git_root=$PWD | |
| while [[ $git_root != / && ! -e $git_root/.git ]]; do | |
| git_root=$git_root:h | |
| done | |
| if [[ $git_root = / ]]; then | |
| unset git_root | |
| prompt_short_dir=%~ | |
| else | |
| parent=${git_root%\/*} | |
| prompt_short_dir=${PWD#$parent/} | |
| fi | |
| echo "$prompt_short_dir " | |
| } | |
| PROMPT=' $ret_status %F{yellow}$(virtualenv_prompt_info)%f%F{white}$(get_pwd)%f$(git_prompt_info)$ ' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%F{cyan}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%f" | |
| ZSH_THEME_GIT_PROMPT_DIRTY=" %F{yellow}✗%f" | |
| ZSH_THEME_GIT_PROMPT_CLEAN=" %F{green}✓%f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment