From ff4acb8e26a9d403eedb407918028281fbcec571 Mon Sep 17 00:00:00 2001 From: ZennDev1337 Date: Thu, 25 Jul 2024 07:53:21 +0200 Subject: [PATCH] Add zshrc --- .zshrc | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .zshrc diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..e87bf16 --- /dev/null +++ b/.zshrc @@ -0,0 +1,53 @@ +### Oh-My-Zsh configuration ### + +################# +# PS1 # +################# +export ZSH="$HOME/.oh-my-zsh" +# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes +ZSH_THEME="fino-time" +plugins=( + git + zsh-autosuggestions +) + +### User configuration ### + +################# +# EXPORTS # +################# +export PATH=$HOME/.local/bin:$PATH +export PATH="$HOME/nvim/bin:$PATH" +export PATH="$HOME/.cargo/bin:$PATH" +export PATH="$HOME/.gobrew/current/bin:$HOME/.gobrew/bin:$PATH" +export GOROOT="$HOME/.gobrew/current/go" +export GOPATH="$HOME/.gobrew/gopath" +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" +export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' + + +################## +mkdir -p .config-backup && \ +config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \ +xargs -I{} mv {} .config-backup/{}# Aliase # +################## +alias ll="ls -al" +alias vim="nvim" +alias update="sudo apt update && sudo apt upgrade -y && flatpak update -y" +alias alacritty="env -u WAYLAND_DISPLAY alacritty" +alias config='/usr/bin/git --git-dir=/home/zenn/.cfg/ --work-tree=/home/zenn' +alias config-fix='mkdir -p .config-backup && config checkout 2>&1 | egrep "\s+\." | awk {"print $1"} | xargs -I{} mv {} .config-backup/{}' + +################## +# Source # +################## +source $ZSH/oh-my-zsh.sh +source $HOME/.cargo/env +eval "$(pyenv init --path)" +eval "$(pyenv init -)" + +################### +# Start Scripts # +################### +fastfetch