Skip to content

Commit 7dd8490

Browse files
committedNov 19, 2021
2021 update: where is zschrc? sigh OSX
1 parent 9d82c97 commit 7dd8490

File tree

5 files changed

+62
-15
lines changed

5 files changed

+62
-15
lines changed
 

‎.bash_profile

+24-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
1+
ZSH_THEME="agnoster"
2+
3+
plugins=(
4+
git
5+
osx
6+
)
7+
18

29
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
310

4-
if [ -f $(brew --prefix)/etc/bash_completion ]; then
5-
. $(brew --prefix)/etc/bash_completion
6-
fi
11+
#if [ -f $(brew --prefix)/etc/bash_completion ]; then
12+
# . $(brew --prefix)/etc/bash_completion
13+
#fi
14+
15+
# Continuation of gpg setup
16+
# GPG_TTY=$(tty)
17+
# export GPG_TTY
18+
19+
export PATH="$HOME/.cargo/bin:$PATH"
20+
export PATH="/usr/local/opt/postgresql@9.6/bin:$PATH"
21+
22+
eval "$(rbenv init -)"
23+
if [ -e /Users/bfung/.nix-profile/etc/profile.d/nix.sh ]; then
24+
. /Users/bfung/.nix-profile/etc/profile.d/nix.sh;
25+
fi # added by Nix installer
726

8-
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
27+
#ohmyzsh theme to hide user@hostname
28+
prompt_context(){}

‎.bashrc

-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
2-
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

‎.gitconfig

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
[user]
44
name = Benson Fung
55
email = fung.benson@gmail.com
6+
signingkey = 70FD86FD927E9028
67

78
[push]
89
default = simple
10+
[gpg]
11+
program = /usr/local/bin/gpg

‎.profile

+34-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,44 @@
1-
export CLICOLOR=1
2-
export LSCOLORS=GxFxCxDxBxegedabagaced
1+
source /usr/local/etc/bash_completion.d/git-prompt.sh
2+
#source /usr/local/etc/bash_completion.d/git-completion.zsh
3+
4+
#export CLICOLOR=1
5+
#export LSCOLORS=GxFxCxDxBxegedabagaced
36

47
alias ls='ls -GFh'
5-
alias ll='ls -Glta'
8+
alias ll='ls -Gla'
69

7-
if [ -f `brew --prefix`/etc/bash_completion ]; then
8-
. `brew --prefix`/etc/bash_completion
9-
fi
10+
#export GIT_PS1_SHOWDIRTYSTATE=1
11+
#export PS1='\w$(__git_ps1 " [%s]")\$ '
12+
13+
#if [ -f "$(brew --prefix)/etc/bash_completion" ]; then
14+
# . "$(brew --prefix)/etc/bash_completion"
15+
#fi
1016

1117
export w=~/workspace
12-
export JAVA_HOME=$(/usr/libexec/java_home)
18+
export JAVA_HOME="$(/usr/libexec/java_home)"
1319

1420
if which jenv > /dev/null; then
1521
eval "$(jenv init -)";
1622
fi
1723

18-
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH
24+
# Add the following to your shell init to set up gpg-agent automatically for every shell
25+
# 2018-04-06 - Comment out for now and use GPG Guite for macOS High Sierra
26+
# if [ -f ~/.gnupg/gpg-agent-info ] && [ $(pgrep gpg-agent) ]; then
27+
# source ~/.gnupg/gpg-agent-info
28+
# export GPG_AGENT_INFO
29+
# export SSH_AUTH_SOCK
30+
# else
31+
# gpg-agent --daemon --enable-ssh-support \
32+
# --write-env-file ~/.gnupg/gpg-agent-info
33+
# fi
34+
35+
if which pyenv > /dev/null; then
36+
eval "$(pyenv init -)"
37+
fi
38+
39+
alias grep='grep --color=auto --exclude-dir={.git,.stack-work}'
40+
41+
PATH=$PATH:/$HOME/.local/bin:usr/local/bin:/usr/local/sbin
42+
PATH=$PATH:$HOME/.cargo/bin
43+
export PATH
44+

‎.vimrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set ruler "show the column position of the cursor
44
set smartindent "autoindent
55
set tabstop=4 "tabs are 4 spaces
66
set shiftwidth=4 "number of spaces for auto/smart indent
7-
set expandtab "tabs to spaces
7+
" set expandtab "tabs to spaces
88

99
" get rid of trailing whitespace
1010
set wrap

0 commit comments

Comments
 (0)
Please sign in to comment.