From 3159e1eaa236b29dc5cd4e350f8065f787f1492e Mon Sep 17 00:00:00 2001 From: sils Date: Mon, 12 Dec 2022 18:24:00 +0100 Subject: update aliasses and env vars --- zsh.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zsh.nix b/zsh.nix index 7d24aac..b86ca51 100644 --- a/zsh.nix +++ b/zsh.nix @@ -12,8 +12,6 @@ plugins=(git) - export EDITOR='nvim' - export GOPATH="$XDG_DATA_HOME/go" alias vim="nvim" alias ls='lsd' alias l='ls -l' @@ -24,7 +22,7 @@ alias repreconf='restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd' alias b-del="sudo btrfs subv delet /srv/snapshots/home" alias b-shot="sudo btrfs subvolume snapshot -r /home /srv/snapshots/home" - alias ba='[ -d /srv/snapshots/home ] && sudo btrfs subvolume delete /srv/snapshots/home; [ -d /srv/snapshots/root ] && sudo btrfs subvolume delete /srv/snapshots/root; sudo btrfs subvolume snapshot -r /home /srv/snapshots/home; sudo btrfs subvolume snapshot -r / /srv/snapshots/root; sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd backup /srv/snapshots/home; sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd backup /srv/snapshots/root;' + alias b-home='[ -d /srv/snapshots/home ] && sudo btrfs subvolume delete /srv/snapshots/home; sudo btrfs subvolume snapshot -r /home /srv/snapshots/home; sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd backup /srv/snapshots/home;' alias r-clean="sudo restic -r /mnt/storage/backups --password-file ~/srv/restic_pswd forget \ --keep-weekly 7 \ --keep-daily 7 \ -- cgit 1.4.1