Compare commits

..

3 Commits

Author SHA1 Message Date
Rob Watson 08963eef2d chore(zsh): cleanup 2024-08-15 05:20:36 +01:00
Rob Watson b1fd7b3ac6 chore(nvim): limit treesitter context max lines 2024-08-15 05:16:52 +01:00
Rob Watson e9416932fe chore(git): add aliases 2024-08-15 05:15:43 +01:00
4 changed files with 19 additions and 0 deletions

View File

@ -41,8 +41,10 @@
l1 = log --oneline
ll = log --oneline -n 5
lp = log -p
lpme = logpme
lm = logme
logme = !sh -c 'git log --author=\"$(git config --get user.name)\"'
logpme = !sh -c 'git log -p --author=\"$(git config --get user.name)\"'
lrb = !git log $(git drb)
ls = !git branch --format '%(refname:short)' | fzf
ma = merge --abort

View File

@ -115,4 +115,5 @@ require("nvim-treesitter.configs").setup({
require("treesitter-context").setup({
enable = true,
max_lines = 7
})

6
zshenv
View File

@ -30,6 +30,12 @@ export FAST_REFRESH=false
# k8s
export KUBECONFIG=$HOME/.kube/config:$HOME/.kube/config-do
if [ "$(uname -s)" = "Darwin" ]; then
# brew
export HOMEBREW_NO_INSTALL_CLEANUP=1
export HOMEBREW_NO_AUTO_UPDATE=1
fi
# See `installdotfiles`:
if [ -f "$ZDOTDIR/.zshsecrets" ]; then
source "$ZDOTDIR/.zshsecrets"

10
zshrc
View File

@ -166,6 +166,16 @@ export PATH=$HOME/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/script:$PATH
if [ "$(uname -s)" = "Darwin" ]; then
if [ -d /opt/homebrew/bin ]; then
export PATH=/opt/homebrew/bin:$PATH
fi
if [ -d /opt/homebrew/opt/curl/bin ]; then
export PATH="/opt/homebrew/opt/curl/bin:$PATH"
fi
export PATH="/Applications/Postgres.app/Contents/Versions/16/bin:$PATH"
fi
export VIMPLUGIN="$HOME/.vim/pack/git-plugins"
# source local zshrc, if it exists (not: not in git)