dotfiles/home/zsh/files/functions.zsh

14 lines
235 B
Bash
Raw Normal View History

function push() {
git add -A
2024-09-14 17:53:40 +02:00
if [ -z "$*" ]; then
git commit -m "$(date)"
else
2024-09-14 17:53:40 +02:00
git commit -m "$*"
fi
git push
}
2025-01-28 01:20:00 +01:00
function run() {
2025-02-22 16:07:12 +01:00
NIXPKGS_ALLOW_UNFREE=1 nix run --impure "nixpkgs#$1" -- "${@:2}"
2025-01-28 01:20:00 +01:00
}