From: Gabriel Dunne Date: Fri, 9 Jul 2021 20:13:22 +0000 (-0700) Subject: Adding show/hide hidden files to darwin X-Git-Url: https://git.quilime.com/?a=commitdiff_plain;h=4a52a92d14ccc0f09596986538d465e998ca0c48;p=cfg.git Adding show/hide hidden files to darwin --- diff --git a/.vimrc b/.vimrc index d372044..327e956 100644 --- a/.vimrc +++ b/.vimrc @@ -1,14 +1,17 @@ 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 @@ -32,7 +35,7 @@ set showcmd " set list " draw vertical column at 80 -" set colorcolumn=80 +" set colorcolumn=80 " show hidden files in nerdtree " use ctrl +jkhl to navigate panes diff --git a/.zsh-darwin b/.zsh-darwin index 7f1072b..143ec0b 100644 --- a/.zsh-darwin +++ b/.zsh-darwin @@ -8,13 +8,26 @@ alias cfg='/usr/bin/git --git-dir=/Users/gld/.cfg/ --work-tree=/Users/gld' 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"