summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2022-12-12 18:24:00 +0100
committersils <sils@sils.li>2022-12-12 18:24:00 +0100
commit3159e1eaa236b29dc5cd4e350f8065f787f1492e (patch)
treef9bb34335909f37db4fdd5c8eff6cf3fcd7cc61c
parentremove autologin (I donĀ“t want X) and give cnnr a password (diff)
downloadnix-config-3159e1eaa236b29dc5cd4e350f8065f787f1492e.tar.gz
nix-config-3159e1eaa236b29dc5cd4e350f8065f787f1492e.zip
update aliasses and env vars
-rw-r--r--zsh.nix4
1 files changed, 1 insertions, 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  \