PortValhalla/scripts/Common/Software/bash/profile.fish

31 lines
696 B
Fish
Raw Normal View History

2024-07-16 01:30:14 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
2024-11-01 12:12:16 +00:00
source "$dir/../../../lib/profile-base.fish"
2024-07-16 01:30:14 +00:00
function getBashStatements
end
function processContent -a content
set -l statements (getBashStatements)
echo "$content"
if [ (echo "$statements" | wc -l) -gt 0 ]
printf %s\n \
"" \
'if test "$BASH"' \
2024-10-06 19:25:34 +00:00
then
2024-07-16 01:30:14 +00:00
echo "$statements" | while read -l line
echo " $line"
end
2024-10-06 19:25:34 +00:00
echo fi
2024-07-16 01:30:14 +00:00
end
end
function installBashProfile -a name title
addProfileStatement "$name" "$title" /bin/bash sh /etc/bash/conf.d $argv[3..]
end
end