filetype plugin indent on
+" automatically read file changes
+" set autoread
+" :checktime
" syntax highlighting
syntax on
set encoding=utf-8
" don't beep
set noerrorbells
" visual bell
-"set visualbell
+"set visualbell
"setup default tab/shift/expand
-set tabstop=4 shiftwidth=4 expandtab
+set tabstop=4 shiftwidth=4 expandtab
" Highlight current line
"set cursorline
" hightlight search and incremental seach
" set list
" draw vertical column at 80
-" set colorcolumn=80
+" set colorcolumn=80
" show hidden files in nerdtree
" use ctrl +jkhl to navigate panes
alias ls='ls -G'
alias cats='highlight -O ansi --force'
alias x86='arch -x86_64 zsh' # Start Shell in Rosetta 2 (M1 Macs)
+alias dl='youtube-dl'
+alias hf='defaults write com.apple.finder AppleShowAllFiles false; killall Finder' # hide hidden
+alias shf='defaults write com.apple.finder AppleShowAllFiles true; killall Finder' # show hidden
-# sublime text
+# if x86, show in prompt
+if [ `arch` = "i386" ];
+then
+ PROMPT=$PROMPT"[x86] "
+fi
+
+# sublime
export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"
+# homebrew
+eval $(/opt/homebrew/bin/brew shellenv)
+
# nvm
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
-
+# ruby
+export PATH="/Users/gld/.gem/ruby/3.0.0/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/lib/ruby/gems/3.0.0/bin:$PATH"