⚡ Migrate other dotfiles and log …
not included in the original repo
This commit is contained in:
38
.config/nodejsscript/completions.json
Normal file
38
.config/nodejsscript/completions.json
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"version": "1.0",
|
||||
"scripts": {
|
||||
"§vim_plugins": {
|
||||
"target": "§vim_plugins",
|
||||
"npx": false,
|
||||
"completions": {
|
||||
"path": [],
|
||||
"clone": [
|
||||
"-t",
|
||||
"--target",
|
||||
"-b",
|
||||
"--branch"
|
||||
],
|
||||
"C": "clone",
|
||||
"remove": [],
|
||||
"R": "remove",
|
||||
"rm": "remove",
|
||||
"list": [
|
||||
"-t",
|
||||
"--type"
|
||||
],
|
||||
"L": "list",
|
||||
"ls": "list",
|
||||
"export": [],
|
||||
"status": [],
|
||||
"S": "status",
|
||||
"pull": [],
|
||||
"P": "pull",
|
||||
"update": "pull"
|
||||
},
|
||||
"completions_all": [
|
||||
"--help",
|
||||
"--version"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
18
.config/nodejsscript/nodejsscriptrc.mjs
Normal file
18
.config/nodejsscript/nodejsscriptrc.mjs
Normal file
@ -0,0 +1,18 @@
|
||||
/* --print/--echo aliases */
|
||||
Reflect.defineProperty($, "nosed", { get(){ return this.stdin.text(""); }, });
|
||||
Reflect.defineProperty($, "nojq", { get(){ return this.stdin.json(null); }, });
|
||||
Reflect.defineProperty($, "noawk", { get(){ return this.stdin.lines([]); }, });
|
||||
|
||||
/* deprecated/fallback */
|
||||
globalThis.cyclicLoop= function*(items){
|
||||
if(!items) items= 'win32'===process.platform ? '|/-\\' : "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏";
|
||||
const { length }= items;
|
||||
for(let i=0; true; i++){
|
||||
if(i===length) i= 0;
|
||||
yield items[i];
|
||||
}
|
||||
}
|
||||
|
||||
Reflect.defineProperty($, "clipboard", {
|
||||
get(){ return s.$().run`xclip -o -selection clipboard`; }
|
||||
})
|
30
.config/nodejsscript/repl_history
Normal file
30
.config/nodejsscript/repl_history
Normal file
@ -0,0 +1,30 @@
|
||||
$.clipboard
|
||||
$_
|
||||
s.ls()
|
||||
s.grep("xml", "config.xml")
|
||||
s.cat("config.xml")
|
||||
s.cat()
|
||||
s.ls()
|
||||
echo(s.ls())
|
||||
s.ls()
|
||||
[...s.ls()]
|
||||
.clear
|
||||
[...s.ls()]
|
||||
s.ls().forEach(l=> echo(l))
|
||||
s.ls().forEach(echo)
|
||||
s.ls("..")
|
||||
s.ls()
|
||||
s.pwd()
|
||||
s.cd("../")
|
||||
s.pwd()
|
||||
s.cd("..")
|
||||
s.pwd()
|
||||
s.ls()
|
||||
await sleep(700)
|
||||
const sleep= t=> new Promise(r=> setTimeout(r, t));
|
||||
$0
|
||||
pipe(s=> s[0].split(""), s=> s.concat("ha".split("")), s=> s.join(""))($_)
|
||||
$0= $_
|
||||
$_
|
||||
$[2]
|
||||
$_, "vývoj.md")"hlavičky", "vývoj.md")"vývoj.md")
|
Reference in New Issue
Block a user