From 345e0e25ea2c2b49fbcf07711b3bc823a4351ab0 Mon Sep 17 00:00:00 2001 From: Sarthak Jain Date: Thu, 12 Mar 2026 13:16:14 +0530 Subject: [PATCH] Zshrc fixes for mac --- .zshrc | 44 +++++++++++++++++++++++++------------------- sh_personal | 20 +++++++++++--------- 2 files changed, 36 insertions(+), 28 deletions(-) diff --git a/.zshrc b/.zshrc index eedbe92..7e3ee5b 100644 --- a/.zshrc +++ b/.zshrc @@ -17,14 +17,14 @@ ZSH_THEME="robbyrussell" # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) # Uncomment the following line to use case-sensitive completion. -# CASE_SENSITIVE="true" +CASE_SENSITIVE="true" # Uncomment the following line to use hyphen-insensitive completion. # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" # Uncomment one of the following lines to change the auto-update behavior -# zstyle ':omz:update' mode disabled # disable automatic updates +zstyle ':omz:update' mode disabled # disable automatic updates # zstyle ':omz:update' mode auto # update automatically without asking # zstyle ':omz:update' mode reminder # just remind me to update when it's time @@ -35,19 +35,19 @@ ZSH_THEME="robbyrussell" # DISABLE_MAGIC_FUNCTIONS="true" # Uncomment the following line to disable colors in ls. -DISABLE_LS_COLORS="true" +# DISABLE_LS_COLORS="true" # Uncomment the following line to disable auto-setting terminal title. -# DISABLE_AUTO_TITLE="true" +DISABLE_AUTO_TITLE="true" # Uncomment the following line to enable command auto-correction. -ENABLE_CORRECTION="true" +# ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion. # You can also set it to another string to have that shown instead of the default red dots. # e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f" # Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765) -# COMPLETION_WAITING_DOTS="true" +COMPLETION_WAITING_DOTS="true" # Uncomment the following line if you want to disable marking untracked files # under VCS as dirty. This makes repository status check for large repositories @@ -70,7 +70,7 @@ ENABLE_CORRECTION="true" # 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 starship ) +plugins=(git zsh-autosuggestions starship) source $ZSH/oh-my-zsh.sh @@ -79,14 +79,14 @@ source $ZSH/oh-my-zsh.sh # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment -export LANG=en_US.UTF-8 +# export LANG=en_US.UTF-8 # Preferred editor for local and remote sessions -if [[ -n $SSH_CONNECTION ]]; then - export EDITOR='vim' -else - export EDITOR='nvim' -fi +# if [[ -n $SSH_CONNECTION ]]; then +# export EDITOR='vim' +# else +# export EDITOR='nvim' +# fi # Compilation flags # export ARCHFLAGS="-arch $(uname -m)" @@ -102,9 +102,15 @@ fi # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" -# -# -# -# -source ~/dotfiles/sh_personal -source ~/dotfiles/sh_ciena + +export PATH="/Users/jsarthak/flutter-sdk/flutter/bin:$PATH" + +source <(fzf --zsh) + +# Added by Antigravity +export PATH="/Users/jsarthak/.antigravity/antigravity/bin:$PATH" +export PATH="/Users/jsarthak/flutter-sdk/flutter/bin:$PATH" +export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:$PATH" +source $HOME/dotfiles/sh_personal +MANPAGER="col -b | cat" +MANROFFOPT="-P-c" diff --git a/sh_personal b/sh_personal index 9641a07..7763fe1 100644 --- a/sh_personal +++ b/sh_personal @@ -9,17 +9,22 @@ esac # See bash(1) for more options HISTCONTROL=ignoreboth -# append to the history file, don't overwrite it -shopt -s histappend - -# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) -HISTSIZE=1000 -HISTFILESIZE=2000 +if [[ -n "$BASH_VERSION" ]]; then + shopt -s histappend + eval "$(starship init bash)" # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize + +fi + +# append to the history file, don't overwrite it + +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) +HISTSIZE=1000 +HISTFILESIZE=2000 # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar @@ -137,9 +142,6 @@ export MANROFFOPT="-c" [ -f ~/.fzf.bash ] && source ~/.fzf.bash # --------------------------------- Starship -------------------------------------- -if [[ -n "$BASH_VERSION" ]]; then - eval "$(starship init bash)" -fi # colorscript -r # neofetch