From 3f588cabbccd87bd705b0b41a52e9a67f8276f8f Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 21 May 2023 19:16:51 +0200 Subject: [PATCH] Add alias aliases --- .bash_aliases | 4 ++++ .gitconfig | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index e2fc34d..10295d7 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -1,4 +1,8 @@ # Config quick-open +# Alias aliases +alias al=alias +alias alf="alias | fzf" +alias al-=unalias alias bashrc="nvim ~/.bashrc" alias aliasrc="nvim ~/.aliasrc" diff --git a/.gitconfig b/.gitconfig index 8992af8..aef1638 100644 --- a/.gitconfig +++ b/.gitconfig @@ -17,7 +17,10 @@ s = status -s co = checkout cob = checkout -b - alias = "!git config -l | grep alias | cut -c 7-" + # Note these follow the naming convention of my `.bash_aliases` + al = "!git config -l | grep alias | cut -c 7-" + alf = "!git config -l | grep alias | cut -c 7- | fzf" + al- = "!git config --local --unset $(git config -l | grep alias | cut --delimiter="=" --fields=1 | fzf)" rs = "restore --staged" [color]