Skip to content

Commit

Permalink
git
Browse files Browse the repository at this point in the history
  • Loading branch information
bhipple committed Jan 30, 2025
1 parent 4c063d5 commit a60f9b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion bin/mk-git-aliases
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ tgt=$HOME/dotfiles/zsh/git_aliases.zsh
echo "# Generated by ../bin/mk-git-aliases; do not edit" > $tgt
git la | grep -Ev '^g' | cut -d'=' -f1 | grep -v '-' | xargs -I{} echo 'alias g{}="git {}"' | tee -a $tgt

echo 'alias gg="git grep"' | tee -a $tgt
echo 'alias ggi="git grep -i"' | tee -a $tgt
echo 'alias gprs="git prs"' | tee -a $tgt
echo 'alias grf="git rf"' | tee -a $tgt
Expand Down
9 changes: 9 additions & 0 deletions nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -363,4 +363,13 @@ cmp.setup.cmdline(':', {
})
})

-- After entering a python buffer, sleep to allow LSP to startup, then change its bundle
vim.api.nvim_create_autocmd("FileType", {
pattern = "python",
callback = function()
vim.defer_fn(function()
vim.cmd('PyrightSetPythonPath /n/nix/sa/links/sa-bundle/default/bin/python')
end, 1000) -- waits X ms before executing
end
})
-- vim: ts=2 sts=2 sw=2 et
1 change: 0 additions & 1 deletion zsh/git_aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ alias gup="git up"
alias gus="git us"
alias gut="git ut"
alias gla="git la"
alias gg="git grep"
alias ggi="git grep -i"
alias gprs="git prs"
alias grf="git rf"
Expand Down

0 comments on commit a60f9b0

Please sign in to comment.