mirror of
https://github.com/hydroxycarbamide/dotfiles.git
synced 2025-05-08 13:49:07 -04:00
rofi, fish
This commit is contained in:
parent
5b9617023b
commit
9024cf03f2
274 changed files with 7229 additions and 0 deletions
1
dot_config/private_fish/triton/github.com/edc/bass/test/fixtures/alias.sh
vendored
Normal file
1
dot_config/private_fish/triton/github.com/edc/bass/test/fixtures/alias.sh
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
alias k?="echo hello"
|
5
dot_config/private_fish/triton/github.com/edc/bass/test/fixtures/dollar_output.sh
vendored
Normal file
5
dot_config/private_fish/triton/github.com/edc/bass/test/fixtures/dollar_output.sh
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
function dollar_output {
|
||||
echo 'some program output with the $ symbol in it'
|
||||
}
|
||||
|
||||
dollar_output
|
5
dot_config/private_fish/triton/github.com/edc/bass/test/fixtures/trailing_semicolon.sh
vendored
Normal file
5
dot_config/private_fish/triton/github.com/edc/bass/test/fixtures/trailing_semicolon.sh
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
function trailing_semicolon() {
|
||||
echo 'export SEMICOLON_RSTRIPPED=1;'
|
||||
}
|
||||
|
||||
trailing_semicolon
|
|
@ -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
|
|
@ -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'
|
|
@ -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'
|
|
@ -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'
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue