-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tools): make Chezmoi obsolete (migrated the simpler GNU Stow)
- Loading branch information
1 parent
a544398
commit 609781a
Showing
2 changed files
with
42 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
;;; me-chezmoi.el --- Dotfiles management with chezmoi -*- lexical-binding: t; -*- | ||
|
||
;; Copyright (C) 2022-2023 Abdelhak Bougouffa | ||
|
||
;; Author: Abdelhak Bougouffa (concat "abougouffa" "@" "fedora" "project" "." "org") | ||
|
||
;;; Commentary: | ||
|
||
;;; Code: | ||
|
||
(use-package chezmoi | ||
:straight (chezmoi :files (:defaults "extensions/*.el")) | ||
:when (executable-find "chezmoi") | ||
:commands | ||
chezmoi-find chezmoi-write chezmoi-diff chezmoi-open-other | ||
chezmoi-sync-files chezmoi-magit-status | ||
:init | ||
(+map! :infix "o" | ||
"c" '(nil :wk "chezmoi") | ||
"cf" #'chezmoi-find | ||
"cw" #'chezmoi-write | ||
"cd" #'chezmoi-diff | ||
"co" #'chezmoi-open-other | ||
"cs" #'chezmoi-sync-files)) | ||
|
||
(use-package chezmoi-ediff | ||
:when (executable-find "chezmoi") | ||
:commands chezmoi-ediff | ||
:init | ||
(+map! "oce" #'chezmoi-ediff)) | ||
|
||
(use-package chezmoi-magit | ||
:when (executable-find "chezmoi") | ||
:commands chezmoi-magit-status | ||
:init | ||
(+map! "ocg" #'chezmoi-magit-status)) | ||
|
||
|
||
(provide 'obsolete/me-chezmoi) | ||
|
||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;; me-chezmoi.el ends here |