update .env
This commit is contained in:
parent
3e032c0927
commit
9e08a1e8b8
2 changed files with 14 additions and 12 deletions
24
.env
24
.env
|
@ -1,14 +1,18 @@
|
|||
echo '[i] please run 'nix-shell' to install all dependencies [shell.nix]'
|
||||
test -n "$NIX_SHELL_XRSH" || {
|
||||
|
||||
# automatically mirror main between forgejo<->codeberg
|
||||
git(){
|
||||
set -x
|
||||
test $1 = "push" && test $3 = main && mirror=1
|
||||
$(which git) "$@"
|
||||
test -n "$mirror" && {
|
||||
# automatically mirror main between forgejo<->codeberg
|
||||
git(){
|
||||
set -x
|
||||
shift ; shift # remove first to args
|
||||
$(which git) push codeberg "$@"
|
||||
test $1 = "push" && test $3 = main && mirror=1
|
||||
$(which git) "$@"
|
||||
test -n "$mirror" && {
|
||||
set -x
|
||||
shift ; shift # remove first to args
|
||||
$(which git) push codeberg "$@"
|
||||
}
|
||||
set +x
|
||||
}
|
||||
set +x
|
||||
|
||||
echo '[i] installing nix-shell' && nix-shell
|
||||
|
||||
}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
echo '[i] leaving nix-shell environment'
|
||||
exit
|
Loading…
Add table
Reference in a new issue