feat: added secret copy command to nushell configuration
This commit is contained in:
parent
8d0f24ea8f
commit
6c3b726875
4 changed files with 17 additions and 6 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
|
@ -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
6
flake.lock
generated
|
|
@ -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
|
||||
|
|
@ -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
|
||||
}
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue