summaryrefslogtreecommitdiff
path: root/.config/fisher/github.com/matchai/spacefish/tests/spacefish_test_setup.fish
blob: 31001a7f3c05948208c68ff9cc0efa631c610622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function spacefish_test_setup
	# Delete all lingering spacefish variables
	set --name | grep -E '^(SPACEFISH_|sf_)' | while read -l var
		set -e $var
	end

	# Delete lingering mocked functions
	for mock in $_mocked
		unmock $mock
	end

	# Initialize spacefish theme
	fish_prompt>/dev/null
end