Add zshrc
This commit is contained in:
commit
ff4acb8e26
1 changed files with 53 additions and 0 deletions
53
.zshrc
Normal file
53
.zshrc
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue