Commit 7a2c759

Ansari <ping@ansari.wtf>
2026-02-15 19:20:51
adapting zsh omz according to tmux config
1 parent 4e6f00b
Changed files (3)
.config
.oh-my-zsh
custom
.config/zsh/aliases.zsh
@@ -2,7 +2,6 @@ alias cdd="cd $DEV"
 alias src="source $HOME/.zshrc"
 alias la="ls -a"
 alias ccat="bat --color=always"
-alias vim="nvim"
 alias decompress="tar -xf"
 
 if command -v eza &> /dev/null; then
@@ -48,4 +47,25 @@ ff() {
   [ -n "$files" ] && vim "${(@f)files}"
 }
 
+vim() {
+  if [ $# -eq 0 ]; then
+    command nvim
+    return
+  fi
+
+  if [ "$1" = "." ]; then
+    command nvim "."
+    return
+  fi
+
+  if command -v zoxide &> /dev/null; then
+    local dir
+    dir="$(zoxide query "$1" 2>/dev/null)"
+    [ -n "$dir" ] && set -- "$dir" "${@:2}"
+  fi
+
+  command nvim "$@"
+}
+
+
 #--------------------------------------------------------------------------------
.oh-my-zsh/custom/themes/wraith.zsh-theme
@@ -1,5 +1,8 @@
-# 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%}'
+# with time and git prompt 
+#PROMPT='%{${fg_bold[blue]}%}[%t% ]%{$fg_bold[green]%} %{$fg[cyan]%}%c%{$fg_bold[red]%} ➜%{$fg_bold[blue]%} % %{$reset_color%}'
+
+PROMPT='%{${fg_bold[blue]}%}%{$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=""
.zshrc
@@ -1,11 +1,11 @@
 # Oh My Zsh Configuration
 ZSH_THEME="wraith"
 zstyle ':omz:update' mode reminder
-plugins=(git zsh-autosuggestions)
+plugins=(zsh-autosuggestions)
 
 # Source additional configuration files
 source $HOME/.config/zsh/exports.zsh
 source $ZSH/oh-my-zsh.sh
 source <(fzf --zsh)
 source $HOME/.config/zsh/init.zsh
-source $HOME/.config/zsh/aliases.zsh 
\ No newline at end of file
+source $HOME/.config/zsh/aliases.zsh