Fix gitsigns lua configuration

This commit is contained in:
Daniel McKnight 2025-05-16 20:41:44 -07:00
parent 244f545182
commit ccb866bb58
2 changed files with 19 additions and 5 deletions

22
.bashrc
View file

@ -1,6 +1,4 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
@ -9,7 +7,6 @@ case $- in
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
@ -158,8 +155,12 @@ fi
# Custom dircolors
[ -f ~/.dircolors ] && eval "$(dircolors ~/.dircolors)"
# Set nvim as the preferred editor if available
if [ $(which nvim) ]; then
export EDITOR=nvim
fi
# Kubernetes
export EDITOR=nano
alias k9=k9s
which kubectl 1> /dev/null && source <(kubectl completion bash)
which helm 1> /dev/null && source <(helm completion bash)
@ -183,3 +184,16 @@ PROMPT_COMMAND="${PROMPT_COMMAND};history -a"
# Funciton to notify after a long-running command
alias bell="echo -e '\a'"
# Apply local .bashrc to remote ssh session
ssh-custom() {
remote_file=$(mktemp)
if $(ssh "$@" "cat > ${remote_file}" < ~/.bashrc > /dev/null 2>&1); then
# Successfully copied bashrc to the remote. Source it upon ssh
ssh -t "$@" "bash --rcfile ${remote_file}; rm ${remote_file}"
else
# SSH Config specifies a RemoteCommand; connect normally
ssh "$@"
fi
}
alias sssh=ssh-custom

View file

@ -1,6 +1,6 @@
return {
"lewis6991/gitsigns.nvim",
--branch="v1.0.2",
tag="v1.0.2",
config = function()
require("gitsigns").setup({})
end,