rofi, fish

This commit is contained in:
Hydroxycarbamide 2024-06-21 00:12:00 +02:00
parent 5b9617023b
commit 9024cf03f2
274 changed files with 7229 additions and 0 deletions

View file

@ -0,0 +1 @@
alias k?="echo hello"

View file

@ -0,0 +1,5 @@
function dollar_output {
echo 'some program output with the $ symbol in it'
}
dollar_output

View file

@ -0,0 +1,5 @@
function trailing_semicolon() {
echo 'export SEMICOLON_RSTRIPPED=1;'
}
trailing_semicolon

View file

@ -0,0 +1,10 @@
set root (dirname (dirname (status -f)))
source $root/functions/bass.fish
bass source $root/test/fixtures/alias.sh
set OUT (k\?)
if [ $OUT = "hello" ]
echo 'Success'
else
exit 1
end

View file

@ -0,0 +1,18 @@
source (dirname (status -f))/../functions/bass.fish
bass
bass -d
bass -d export X=3
bass export X=3
if test $status -ne 0
echo 'failed: bass exited with status' $status
exit 1
end
if test -z "$X"
echo 'failed: $X should be set'
exit 1
end
echo 'Success'

View file

@ -0,0 +1,6 @@
set root (dirname (status -f))/..
source $root/functions/bass.fish
bass source $root/test/fixtures/dollar_output.sh | grep -q 'some program output with the $ symbol in it'
echo 'Success'

View file

@ -0,0 +1,11 @@
set root (dirname (dirname (status -f)))
source $root/functions/bass.fish
bass false
if test $status -ne 1
echo 'failed: bass exited with status' $status 'when 1 is expected'
exit 1
end
echo 'Success'

View file

@ -0,0 +1,7 @@
set root (dirname (dirname (status -f)))
source $root/functions/bass.fish
bass (sh $root/test/fixtures/trailing_semicolon.sh)
and if [ "$SEMICOLON_RSTRIPPED" = "1" ]
echo 'Success'
end