Skip to content

Commit

Permalink
Add abbr
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavspi committed Feb 21, 2024
1 parent 3021cf5 commit 96094b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions computer/files/usr/etc/containers/systemd/users/cli.container
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ Environment=USER=%u
Environment=USERNAME=%u
Environment=container=podman
Exec=--verbose --name %u --user %U --group %G --home %h
ExecStartPost=distrobox enter cli -- sh -c " \
sudo chown -R %U:%G /opt/dotfiles /usr/share/nvim && \
/opt/dotfiles/chezmoi-install.sh"
Image=ghcr.io/nadavspi/cli:latest
HostName=%l
Network=host
Expand Down
3 changes: 3 additions & 0 deletions computer/files/usr/lib/systemd/user/cli-update.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Wants=network-online.target
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/podman pull ghcr.io/nadavspi/cli:latest
ExecStartPost=distrobox enter cli -- sh -c " \
sudo chown -R %U:%G /opt/dotfiles /usr/share/nvim && \
/opt/dotfiles/chezmoi-install.sh"

[Install]
WantedBy=default.target
2 changes: 2 additions & 0 deletions home/dot_config/fish/conf.d/abbr.fish
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ abbr -a --set-cursor="%" -- cp-epub "mv -v ~/Downloads/*.epub% /mnt/data/watch/b
abbr -a --set-cursor="%" -- cp-torrent "rsync -avz --remove-source-files % seedbox:~/watch/deluge"
abbr -a --set-cursor="%" -- gro "git reset --hard origin/%"
abbr -a --set-cursor="%" gcm "git commit -m \"%\""
abbr -a -- sc sudo systemctl
abbr -a -- scu systemctl --user

0 comments on commit 96094b7

Please sign in to comment.