Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jcieslar committed Dec 11, 2024
1 parent 6b101af commit 9354a63
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 13 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

* Update gitconfig file with your data


### List of VS code extensions

```bash
Expand Down
5 changes: 0 additions & 5 deletions bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
alias st='git st'
alias lg='git l'
alias ci='git ci'
alias co='git co'
alias br='git br'
alias stash='git stash'
alias pop='git stash pop'
Expand Down Expand Up @@ -73,7 +72,3 @@ alias vc='code .'
alias yt='yt-dlp '
alias yt2='yt-dlp -f best'
alias yt-audio='yt-dlp --extract-audio --audio-format mp3'
# work
alias sp='bin/rake db:sync_from_prod'
alias ag='bin/rake autogenerated_files:generate'
alias cag='bin/rake autogenerated_files:clean'
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fi
brew install fzf ripgrep bat neovim
brew tap homebrew/cask-fonts
brew install --cask font-hack-nerd-font
brew install fzf

# vim
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 && nvim
Expand Down
46 changes: 39 additions & 7 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ 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
Expand Down Expand Up @@ -132,6 +132,10 @@ if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

if [ -f ~/.pl_aliases ]; then
. ~/.pl_aliases
fi

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
#[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
#export PATH="/usr/local/opt/node@12/bin:$PATH"
Expand All @@ -145,19 +149,15 @@ export TERM="xterm-256color"
# export FZF_DEFAULT_COMMAND='rg --files --follow --no-ignore-vcs --hidden -g "!{node_modules/*,.git/*}"'
export FZF_DEFAULT_COMMAND="rg --files --hidden --glob '!.git/*' --smart-case"

# export LDFLAGS="-L/opt/homebrew/opt/postgresql@12/lib"
# export CPPFLAGS="-I/opt/homebrew/opt/postgresql@12/include"
export LDFLAGS="-L/opt/homebrew/opt/postgresql@14/lib"
export CPPFLAGS="-I/opt/homebrew/opt/postgresql@14/include"

if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
export PATH="/opt/homebrew/opt/node@16/bin:$PATH"
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
# export PATH="/opt/homebrew/opt/postgresql@12/bin:$PATH"
PATH="/opt/homebrew/opt/postgresql@14/bin:$PATH"
# PATH="/opt/homebrew/opt/postgresql@14/bin:$PATH"
export PATH=~/.local/bin:$PATH
export PATH="/opt/homebrew/bin/pg_config:$PATH"
export PATH="/opt/homebrew/opt/postgresql@14/bin/psql:$PATH"
# export PATH="/opt/homebrew/opt/postgresql@14/bin/psql:$PATH"

ssh-add --apple-load-keychain > /dev/null 2>&1

Expand All @@ -174,3 +174,35 @@ export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"

export PGGSSENCMODE="disable"
export DISABLE_SPRING=1
export PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"
export PATH="/opt/homebrew/opt/postgresql@16/bin/psql:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/postgresql@16/lib"
export CPPFLAGS="-I/opt/homebrew/opt/postgresql@16/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/postgresql@16/lib/pkgconfig"
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/libpq/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libpq/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/libpq/lib/pkgconfig"
export PG_CONFIG="/opt/homebrew/opt/postgresql@16/bin/pg_config"


co() {
if [ -z "$1" ]; then
# If no argument is provided, use fzf to select a branch
git co $(git branch | fzf)
else
# If an argument is provided, use it to checkout the branch
git co "$1"
fi
}

m() {
if [ -z "$1" ]; then
git merge $(git branch | fzf)
else
git merge "$1"
fi
}

0 comments on commit 9354a63

Please sign in to comment.