Add existing functions

This commit is contained in:
Renarde-dev 2025-01-27 22:36:18 +01:00
parent 7b665b25e1
commit 7d35464246
8 changed files with 46 additions and 0 deletions

4
alias/ga.fish Normal file
View file

@ -0,0 +1,4 @@
function ga --wraps='git add' --description 'alias ga=git add'
git add $argv
end

4
alias/gcmsg.fish Normal file
View file

@ -0,0 +1,4 @@
function gcmsg --wraps='git commit -m' --description 'alias gcmsg=git commit -m'
git commit -m $argv
end

4
alias/gco.fish Normal file
View file

@ -0,0 +1,4 @@
function gco --wraps='git checkout' --description 'alias gco=git checkout'
git checkout $argv
end

4
alias/gss.fish Normal file
View file

@ -0,0 +1,4 @@
function gss --wraps='git status -s' --description 'alias gss=git status -s'
git status -s $argv
end

4
alias/gst.fish Normal file
View file

@ -0,0 +1,4 @@
function gst --wraps='git status' --description 'alias gst=git status'
git status $argv
end

4
alias/l.fish Normal file
View file

@ -0,0 +1,4 @@
function l --wraps='eza --icons -al' --description 'alias l=eza --icons -al'
eza --icons -al $argv
end

4
alias/ls.fish Normal file
View file

@ -0,0 +1,4 @@
function ls --wraps='eza --icons' --description 'alias ls=eza --icons'
eza --icons $argv
end

18
functions/Gitconf.fish Normal file
View file

@ -0,0 +1,18 @@
function Gitconf -d "Autoconf git repo"
command git status -s > /dev/null
if test $status = 0
if test $argv = "univ-nantes"
command git config user.email "lana.heyrendt@etu.univ-nantes.fr"
command git config user.name "Lana Heyrendt"
command git config commit.gpgSign true
command git config user.signingKey "<key>"
else if test $argv = "taniere"
command git config user.email "renarde-dev@la-taniere-solidaire.fr"
command git config user.name "Renarde-dev"
command git config commit.gpgSign true
command git config user.signingKey "<key>"
else
echo "no matching config"
end
end
end