how to

private-functions

Jan 16, 2024
softwares-and-toolsfish
1 Minutes
42 Words

https://stackoverflow.com/questions/25088699/make-fish-functions-private

1
function outer
2
function inner_func
3
echo "I still find this function via automplete."
4
echo "Not anymore!!"
5
functions -e inner_func
6
end
7
# Let's test this!
8
inner_func
9
end
10
11
12
$ outer
13
I still find this function via automplete.
14
Not anymore!!
15
$ inner_func
1 collapsed line
16
fish: Unknown command 'inner_func'
Article title:private-functions
Article author:Julyfun
Release time:Jan 16, 2024
Copyright 2025
Sitemap