AutoYADM commit: 2025-06-16 16:35:41
This commit is contained in:
parent
5e8c48e6bd
commit
6a8e4e91ea
4 changed files with 19 additions and 5 deletions
4
.config/fish/functions/t.fish
Normal file
4
.config/fish/functions/t.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
function t --wraps=task --description 'alias t=task'
|
||||||
|
task $argv
|
||||||
|
|
||||||
|
end
|
|
@ -1,4 +1,4 @@
|
||||||
function tt --wraps=tasktimer --description 'alias tt=tasktimer'
|
function tt --wraps=tasktimer --wraps=taskwarrior-tui --description 'alias tt=taskwarrior-tui'
|
||||||
tasktimer $argv
|
taskwarrior-tui $argv
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,18 @@
|
||||||
define-command -docstring %{
|
define-command -docstring %{
|
||||||
|
sh [switches] <args>
|
||||||
Run the given shell command. Display its output in an info modal.
|
Run the given shell command. Display its output in an info modal.
|
||||||
|
Switches:
|
||||||
|
-d echo stdout to *debug* buffer
|
||||||
} -params 1.. sh %{
|
} -params 1.. sh %{
|
||||||
info %sh{
|
evaluate-commands %sh{
|
||||||
eval "$@"
|
if [ "$1" = "-d" ]; then
|
||||||
|
debug="true"
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
stdout="$(eval "$@")"
|
||||||
|
printf 'info -title sh "%s"\n' "$stdout"
|
||||||
|
if [ "$debug" = "true" ]; then
|
||||||
|
printf 'echo -debug -- "%s"\n' "$stdout"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
SonarAuth
|
SonarAuth
|
||||||
Fichtinger
|
Fichtinger
|
||||||
Gamersauce
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue