Streamline aliae
installation
This commit is contained in:
parent
a761514d2a
commit
5e5bb3e5df
9 changed files with 114 additions and 2 deletions
scripts/Common/Software/bash
30
scripts/Common/Software/bash/profile.fish
Normal file
30
scripts/Common/Software/bash/profile.fish
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/env fish
|
||||
begin
|
||||
set -l dir (status dirname)
|
||||
source "$dir/../../Scripts/profile-base.fish"
|
||||
|
||||
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"' \
|
||||
"then"
|
||||
|
||||
echo "$statements" | while read -l line
|
||||
echo " $line"
|
||||
end
|
||||
|
||||
echo "fi"
|
||||
end
|
||||
end
|
||||
|
||||
function installBashProfile -a name title
|
||||
addProfileStatement "$name" "$title" /bin/bash sh /etc/bash/conf.d $argv[3..]
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue