dot/zsh/.zshrc

53 lines
1.8 KiB
Bash

export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="sorin"
plugins=(git)
source $ZSH/oh-my-zsh.sh
export EDITOR=nvim
alias vim="nvim"
alias vi="nvim"
alias ls="lsd"
# Zoxide
eval "$(zoxide init zsh)"
alias cd='z'
alias zi='zoxide query -i'
alias zq='zoxide query'
alias attach='tmux attach-session -t'
alias list='tmux list-sessions'
fzfedit() {
local file
file=$(find . -type f ! -path '*/.*' | fzf --preview 'bat --style=full --color=always {} 2>/dev/null') || return
[[ -n "$file" ]] && nvim "$file"
}
cfg() {
local file
file=$(find ~/.config -type f | fzf --preview 'bat --style=full --color=always {} 2>/dev/null') || return
[[ -n "$file" ]] && nvim "$file"
}
# Herd configurations
export HERD_PHP_83_INI_SCAN_DIR="/Users/nasr/Library/Application Support/Herd/config/php/83/"
export HERD_PHP_82_INI_SCAN_DIR="/Users/nasr/Library/Application Support/Herd/config/php/82/"
export PATH="/Users/nasr/Library/Application Support/Herd/bin/":$PATH
export HERD_PHP_85_INI_SCAN_DIR="/Users/nasr/Library/Application Support/Herd/config/php/85/"
export HERD_PHP_84_INI_SCAN_DIR="/Users/nasr/Library/Application Support/Herd/config/php/84/"
export NVM_DIR="/Users/nasr/Library/Application Support/Herd/config/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[[ -f "/Applications/Herd.app/Contents/Resources/config/shell/zshrc.zsh" ]] && builtin source "/Applications/Herd.app/Contents/Resources/config/shell/zshrc.zsh"
# Angular autocompletion
source <(ng completion script)
# Homebrew configuration
export PATH="$HOME/.local/bin:$PATH"
export PKG_CONFIG_PATH="/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH" # Add Homebrew pkg-config path
export PKG_CONFIG_PATH="/opt/homebrew/Cellar/raylib/5.5/lib/pkgconfig:$PKG_CONFIG_PATH"
# Syntax highlighting
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh