Commit a6d7b88
Changed files (4)
.config/ghostty/config
@@ -1,4 +1,4 @@
-theme = ayu
+theme = "Ayu Mirage"
keybind = ctrl+shift+w=close_window
keybind = ctrl+shift+e=new_split:right
@@ -15,5 +15,4 @@ cursor-color = lightgreen
cursor-style = bar
cursor-style-blink = true
-shell-integration = none
-# shell-integration-features = none
\ No newline at end of file
+shell-integration-features = no-cursor
\ No newline at end of file
.oh-my-zsh/custom/themes/custom-gozilla.zsh-theme
@@ -0,0 +1,16 @@
+# PROMPT='%{${fg_bold[blue]}%}[%t% ]%{$fg_bold[green]%} %{$fg[cyan]%}%c%{$fg_bold[blue]%} %{$fg_bold[red]%}➜ %{$fg_bold[blue]%}% %{$reset_color%}'
+PROMPT='%{${fg_bold[blue]}%}[%t% ]%{$fg_bold[green]%} %{$fg[cyan]%}%c%{$fg_bold[red]%} ➜%{$fg_bold[blue]%} % %{$reset_color%}'
+ZSH_THEME_GIT_PROMPT_PREFIX="("
+ZSH_THEME_GIT_PROMPT_SUFFIX=")"
+ZSH_THEME_GIT_PROMPT_DIRTY=""
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+
+RPROMPT='$(git_prompt_status) %{$fg_bold[red]%}$(git_prompt_info)%{$reset_color%}'
+
+ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
+ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} ✱"
+ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✱"
+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[white]%} ✱"
+ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} ➦"
+ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%} ✂"
+
.gitconfig
@@ -7,3 +7,5 @@
lg = log --oneline --graph --all
[core]
editor = vim
+[fetch]
+ prune = true
.zshrc
@@ -1,25 +1,26 @@
+#--------------------------------------------------------------------------------
+# EXPORTS
+#--------------------------------------------------------------------------------
+
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
export DEV="$HOME/dev"
export ZSH="$HOME/.oh-my-zsh"
+export EDITOR='vim'
-alias cdd="cd $DEV"
-
-ZSH_THEME="robbyrussell"
+#--------------------------------------------------------------------------------
+# OH MY ZSH
+#--------------------------------------------------------------------------------
+ZSH_THEME="custom-gozilla"
zstyle ':omz:update' mode reminder # just remind me to update when it's time
-# Uncomment the following line to enable command auto-correction.
-# ENABLE_CORRECTION="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)
+plugins=(git zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
-export EDITOR='vim'
+
+#--------------------------------------------------------------------------------
+# MISC
+#--------------------------------------------------------------------------------
# SSH Configs
eval $(keychain -q --eval github)
@@ -29,6 +30,17 @@ if [[ -n "$SSH_AUTH_SOCK" ]]; then
sed -i "s|Exec=.*SSH_AUTH_SOCK=[^ ]\\+ /usr/bin/obsidian %U|Exec=SSH_AUTH_SOCK=$SSH_AUTH_SOCK /usr/bin/obsidian %U|" ~/.local/share/applications/obsidian.desktop
fi
+#--------------------------------------------------------------------------------
+# ALIAS
+#--------------------------------------------------------------------------------
+
+alias cdd="cd $DEV"
+alias src="source $HOME/.zshrc"
+alias la="ls -a"
+
+#--------------------------------------------------------------------------------
+# FUNCTIONS
+#--------------------------------------------------------------------------------
sync-config() {
DOTFILES_DIR="$HOME/dev/.dotfiles"
@@ -46,4 +58,24 @@ sync-config() {
else
echo "❌ Sync cancelled."
fi
-}
\ No newline at end of file
+}
+
+#--------------------------------------------------------------------------------
+
+unalias ls 2>/dev/null
+
+ls() {
+ setopt localoptions nullglob
+
+ if [ "$#" -eq 0 ]; then
+ command ls -lah --color=always --time-style="+%b %d %H:%M" -d .* * 2>/dev/null \
+ | awk '{ printf "%6s %4s %2s %5s %s\n", $5, $6, $7, $8, substr($0, index($0, $9)) }'
+ # elif [ "$#" -eq 1 ] && [ "${1:0:1}" != "-" ] && [ -d "$1" ]; then
+ # command ls -lah -/home/robinhood/.cache/yay/zen-browser/src/pnpm-store-color=always --time-style="+%b %d %H:%M" -d "$1"/.* "$1"/* 2>/dev/null \
+ # | awk '{ printf "%6s %4s %2s %5s %s\n", $5, $6, $7, $8, substr($0, index($0, $9)) }'
+ else
+ command ls --color=tty "$@"
+ fi
+}
+
+#--------------------------------------------------------------------------------