131 lines
3.9 KiB
Bash
131 lines
3.9 KiB
Bash
export ZSH="$HOME/.oh-my-zsh"
|
|
|
|
# Set name of the theme to load --- if set to "random", it will
|
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
|
ZSH_THEME="custom"
|
|
|
|
# Uncomment the following line if you want to disable marking untracked files
|
|
# under VCS as dirty. This makes repository status check for large repositories
|
|
# much, much faster.
|
|
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
|
|
# Which plugins would you like to load?
|
|
# Standard plugins can be found in $ZSH/plugins/
|
|
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
# Add wisely, as too many plugins slow down shell startup.
|
|
plugins=(git zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting pip docker uv zsh-uv-env colorize copyfile)
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
# User configuration
|
|
|
|
# You may need to manually set your language environment
|
|
# export LANG=en_US.UTF-8
|
|
|
|
# Usually, vscode returns immediately after being run. This makes it not
|
|
# suitable for things like crontab or git, which wait until the editor has
|
|
# closed to continue. In such cases, we use the -w option to make it wait.
|
|
codewait="/usr/local/bin/code-wait.sh"
|
|
if [ ! -e $codewait ]; then
|
|
echo "Waiting version of vscode is missing."
|
|
fi
|
|
|
|
# Preferred editor for local and remote sessions
|
|
if [[ -n $SSH_CONNECTION ]]; then
|
|
export EDITOR='nano'
|
|
else
|
|
export EDITOR="helix"
|
|
export VISUAL=$codewait
|
|
fi
|
|
|
|
# Compilation flags
|
|
# export ARCHFLAGS="-arch x86_64"
|
|
|
|
# Command aliases
|
|
alias py=python3
|
|
alias pip=pip3
|
|
alias ll="ls -lah"
|
|
|
|
qrshow(){
|
|
qrencode $1 -o - | viu -
|
|
}
|
|
|
|
# Shortcuts
|
|
alias sshconfig="$EDITOR ~/.ssh/config"
|
|
alias zshconfig="$EDITOR ~/.zshrc"
|
|
alias zshreload="source ~/.zshrc"
|
|
alias zshsource="source ~/.zshrc"
|
|
alias wol=wakeonlan
|
|
alias open="xdg-open"
|
|
alias lg="lazygit"
|
|
alias ccat="pygmentize -g -O style=monokai,linenos=1"
|
|
alias rm="echo Use the full path i.e. '/bin/rm', consider using: trash"
|
|
alias csv="csvlens"
|
|
alias ccopilot="cd ~/code/copilot && copilot"
|
|
alias hx="helix"
|
|
|
|
alias R="R --no-save"
|
|
|
|
export GOPATH="$HOME/.local/share/go"
|
|
export GOBIN="$HOME/.local/bin"
|
|
|
|
# Python tkinter stuff
|
|
export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
|
|
|
|
# autojump
|
|
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
|
|
|
|
# ws shortcuts
|
|
alias wsproddb="psql -h ep-shiny-brook-a23l5gzv-pooler.eu-central-1.aws.neon.tech -d neondb -U neondb_owner"
|
|
alias wsdevdb="psql -h ep-bitter-queen-a2jgwcaj-pooler.eu-central-1.aws.neon.tech -d verceldb -U default"
|
|
alias wsrecupdb="psql -h ep-icy-dew-aggbrr4l-pooler.c-2.eu-central-1.aws.neon.tech -d neondb -U neondb_owner"
|
|
alias wsrecupdevdb="psql -h ep-broad-base-ag8vy0hl-pooler.c-2.eu-central-1.aws.neon.tech -d neondb -U neondb_owner"
|
|
|
|
# Fix ls colors for synology directories
|
|
LS_COLORS+=':ow=01;33'
|
|
|
|
# Fix colors for ssh sessions
|
|
TERM=xterm-256color
|
|
|
|
# history
|
|
HISTFILE=~/.histfile
|
|
HISTSIZE=10000
|
|
SAVEHIST=10000
|
|
|
|
export XDG_DATA_DIRS="$HOME/.local/share:$XDG_DATA_DIRS"
|
|
|
|
# Android tools
|
|
export ANDROID_SDK_ROOT="$HOME/.local/opt/android-sdk"
|
|
export ANDROID_HOME="$ANDROID_SDK_ROOT"
|
|
export PATH="$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin"
|
|
export PATH="$PATH:$ANDROID_SDK_ROOT/build-tools/36.0.0/"
|
|
export PATH="$PATH:$ANDROID_SDK_ROOT/emulator"
|
|
|
|
# Unlock hyprlock
|
|
alias unlock=pkill -USR1 hyprlock
|
|
|
|
# zoxided
|
|
eval "$(zoxide init --cmd cd zsh)"
|
|
|
|
# SDKMAN & Java
|
|
export SDKMAN_DIR="$HOME/.sdkman"
|
|
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
|
|
|
|
# Yarn
|
|
export PATH="$HOME/.yarn/bin:$PATH"
|
|
|
|
# More path stuff
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
|
|
#nvm
|
|
source /usr/share/nvm/init-nvm.sh
|
|
|
|
## [Completion]
|
|
## Completion scripts setup. Remove the following line to uninstall
|
|
[[ -f /home/paul/.dart-cli-completion/zsh-config.zsh ]] && . /home/paul/.dart-cli-completion/zsh-config.zsh || true
|
|
## [/Completion]
|
|
|