Update Gitconfig and Bash Aliases

This commit is contained in:
Snoweuph 2024-07-26 18:03:29 +02:00
parent 6ad04f349c
commit 9b8ecc7dd0
Signed by: Snoweuph
GPG key ID: A494330694B208EF
3 changed files with 23 additions and 9 deletions

14
.bashrc
View file

@ -76,12 +76,20 @@ export HSA_OVERRIDE_GFX_VERSION=10.3.0 # RX 6650 XT
# Just # Just
export JUST_UNSTABLE=1 export JUST_UNSTABLE=1
##################################
## Git ##
##################################
case "$HOSTNAME" in
Snoweuph-Kinoite)key=A494330694B208EF;;
fedorabook-pro)key=CFB8E8CF1F0BA9FA2A1840CA0021ADF278B2F49B;;
esac
alias git="git -c user.signingKey='$key'"
################################## ##################################
## Aliases ## ## Aliases ##
################################## ##################################
alias edit-conf-nvim="nvim ~/.config/nvim"
alias nvim-conf="nvim ~/.config/nvim" alias edit-conf-bash="nvim ~/.bashrc"
alias bash-conf="nvim #/.bashrc"
alias todo="nvim ~/Documents/Notes/Todo.md" alias todo="nvim ~/Documents/Notes/Todo.md"
alias nano="nvim" alias nano="nvim"

3
.config/.gitignore vendored
View file

@ -12,3 +12,6 @@
# neovim # neovim
!/nvim/ !/nvim/
# git
!/git/

View file

@ -1,28 +1,31 @@
[user] [user]
name = Snoweuph name = Snoweuph
email = snow+git@euph.email email = snow+git@euph.email
signingKey = A494330694B208EF
[user]
name = Snoweuph
email = snow+git-fedorabook@euph.email
signingKey = CFB8E8CF1F0BA9FA2A1840CA0021ADF278B2F49B
[commit] [commit]
gpgSign = true gpgSign = true
[push] [push]
autosetupremote = true autosetupremote = true
[help] [help]
autoCorrect = prompt autoCorrect = prompt
[core] [core]
editor = nvim editor = nvim
pager = /usr/share/git-core/contrib/diff-highlight | less pager = /usr/share/git-core/contrib/diff-highlight | less
commentChar = ";" commentChar = ";"
[diff] [diff]
colorMoved = default colorMoved = default
[fetch] [fetch]
prune = true prune = true
prunetags = true prunetags = true
[alias] [alias]
adog = log --all --decorate --oneline --graph adog = log --all --decorate --oneline --graph
fl = push --force-with-lease fl = push --force-with-lease
prune-branches = "!git fetch -p && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs -r git branch -d"
[interactive] [interactive]
diffFilter = /usr/share/git-core/contrib/diff-highlight diffFilter = /usr/share/git-core/contrib/diff-highlight