Initial Configs - alacritty, tmux, nvim, zsh

This commit is contained in:
2024-07-03 00:25:50 -07:00
commit d288955423
19 changed files with 1763 additions and 0 deletions

42
zsh/.zshrc Normal file
View File

@@ -0,0 +1,42 @@
# ---- Version Managers ----
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# ---- Native Command Overwrites ----
alias vi="nvim"
alias vim="nvim"
alias cat="bat"
alias find="fd -H"
alias ls="eza --color=always --git --no-filesize --icons=always --no-time --no-user --no-permissions"
alias cd="z"
# ---- SSH Shortcuts ----
alias pandora="ssh root@pandora.cortex.io"
alias miranda="ssh root@miranda.cortex.io"
# ---- convenience commands ----
alias editShell="nvim ~/.zshrc"
alias sourceShell="source ~/.zshrc"
export NOMAD_ADDR=http://pandora.cortex.io:4646
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
# ---- Oh-My-Posh ----
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/theme.json)"
fi
# ---- Zoxide (better cd) ----
eval "$(zoxide init zsh)"
# ---- Auto Enter TMUX ----
if [ -z "$TMUX" ]
then
tmux attach -t TMUX || tmux new -s TMUX
fi