Initial Configs - alacritty, tmux, nvim, zsh
This commit is contained in:
67
zsh/.config/oh-my-posh/theme.json
Normal file
67
zsh/.config/oh-my-posh/theme.json
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"palette": {
|
||||
"os": "#ACB0BE",
|
||||
"closer": "p:os",
|
||||
"pink": "#F5C2E7",
|
||||
"lavender": "#B4BEFE",
|
||||
"blue": "#89B4FA"
|
||||
},
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "p:os",
|
||||
"style": "plain",
|
||||
"template": "{{.Icon}} ",
|
||||
"type": "os"
|
||||
},
|
||||
{
|
||||
"foreground": "p:blue",
|
||||
"style": "plain",
|
||||
"template": "{{ .UserName }} ",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"foreground": "p:pink",
|
||||
"properties": {
|
||||
"folder_icon": "..\ue5fe..",
|
||||
"home_icon": "~",
|
||||
"style": "agnoster_short"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "{{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"foreground": "p:lavender",
|
||||
"properties": {
|
||||
"branch_icon": "\ue725 ",
|
||||
"cherry_pick_icon": "\ue29b ",
|
||||
"commit_icon": "\uf417 ",
|
||||
"fetch_status": false,
|
||||
"fetch_upstream_icon": false,
|
||||
"merge_icon": "\ue727 ",
|
||||
"no_commits_icon": "\uf0c3 ",
|
||||
"rebase_icon": "\ue728 ",
|
||||
"revert_icon": "\uf0e2 ",
|
||||
"tag_icon": "\uf412 "
|
||||
},
|
||||
"template": "{{ .HEAD }} ",
|
||||
"style": "plain",
|
||||
"type": "git"
|
||||
},
|
||||
{
|
||||
"style": "plain",
|
||||
"foreground": "p:closer",
|
||||
"template": "\uf105",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"final_space": true,
|
||||
"version": 2
|
||||
}
|
||||
42
zsh/.zshrc
Normal file
42
zsh/.zshrc
Normal 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
|
||||
Reference in New Issue
Block a user