63 lines
2.1 KiB
Bash
63 lines
2.1 KiB
Bash
### 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/.local/share/JetBrains/Toolbox/scripts:$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'
|
|
export XCURSOR_SIZE=16
|
|
export PATH="$PATH:/opt/nvim-linux64/bin"
|
|
|
|
##################
|
|
# Source #
|
|
##################
|
|
source $ZSH/oh-my-zsh.sh
|
|
source $HOME/.cargo/env
|
|
eval "$(pyenv init --path)"
|
|
eval "$(pyenv init -)"
|
|
|
|
##################
|
|
# Aliase #
|
|
##################
|
|
alias ll="ls -al"
|
|
alias vim="nvim"
|
|
alias update="sudo apt update && sudo apt upgrade $1 && flatpak update $1"
|
|
alias alacritty="env -u WAYLAND_DISPLAY alacritty"
|
|
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME/'
|
|
alias config-fix='mkdir -p .config-backup && config checkout 2>&1 | egrep "\s+\." | awk {"print $1"} | xargs -I{} mv {} .config-backup/{}'
|
|
alias clr="clear"
|
|
alias cat="batcat"
|
|
alias pycharm="XCURSOR_SIZE=16 pycharm $1"
|
|
alias loop='function _loop() { while true; do "$@"; sleep 5; done; }; _loop'
|
|
alias gitall='function _gitall() { git commit -am "$1"; git push -u origin main; }; _gitall'
|
|
alias zed-update='function _zed_update() { loc=$(pwd); cd ~/zed; git pull origin main; ./script/install-linux; cd $loc; }; _zed_update'
|
|
alias diffcopy='function _copydiff() { git diff --cached | clipcopy; }; _copydiff'
|
|
alias venv='. ./.venv/bin/activate'
|
|
|
|
###################
|
|
# Start Scripts #
|
|
###################
|
|
fastfetch -c neofetch.jsonc
|
|
|
|
[ -f "/home/zenn/.ghcup/env" ] && . "/home/zenn/.ghcup/env" # ghcup-env
|