feat: added secret copy command to nushell configuration

This commit is contained in:
Ceferino Patino 2025-10-02 13:17:19 -05:00
commit 6c3b726875
Signed by: c4patino
SSH key fingerprint: SHA256:9fQ9TsujGrdNNi76mnsu63v7dS5JOmHRZEqBOl49OR8
4 changed files with 17 additions and 6 deletions

6
.gitmodules vendored
View file

@ -1,3 +1,9 @@
[submodule "dotfiles"]
path = inputs/dotfiles
url = git@github.com:C4theBomb/dotfiles.git
[submodule "inputs/yumevim/lua"]
path = inputs/yumevim/lua
url = git@github.com:c4patino/yumevim.git
[submodule "inputs/yumevim/nix"]
path = inputs/yumevim/nix
url = git@github.com:c4patino/yumevim-nix.git

6
flake.lock generated
View file

@ -178,11 +178,11 @@
"dotfiles": {
"flake": false,
"locked": {
"lastModified": 1758426370,
"narHash": "sha256-nczcZn/ftB/T6aut/J1IeeoijkbpizwhWcLvdnlWxYw=",
"lastModified": 1759428852,
"narHash": "sha256-RVi1h3zY0IaunkOzO/MjP7sIHwew8ZNi8jlCfPzlIPA=",
"owner": "c4patino",
"repo": "dotfiles",
"rev": "c24ec8d062fc6afc2bb85b4984d0229e7e8d56db",
"rev": "53042c2cc93779db99bd99e1d4355d71a1e927b7",
"type": "github"
},
"original": {

@ -1 +1 @@
Subproject commit c24ec8d062fc6afc2bb85b4984d0229e7e8d56db
Subproject commit 53042c2cc93779db99bd99e1d4355d71a1e927b7

View file

@ -52,8 +52,13 @@ in {
# take command
def take [path: string] {
mkdir $path
cd $path
mkdir $path
cd $path
}
# secret copy command
def sc [path: string] {
open /run/secrets/$path | wl-copy
}
'';