mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-05 00:01:20 +00:00
Add ~/.profile support to busybox bash
bash shim now loads ~/.profile on startup which sources ~/.bashrc if it exists
This commit is contained in:
parent
32d4b4ae4b
commit
3c4cd15318
15
busybox.json
15
busybox.json
@ -11,7 +11,7 @@
|
|||||||
[ "busybox.exe", "awk", "awk" ],
|
[ "busybox.exe", "awk", "awk" ],
|
||||||
[ "busybox.exe", "base64", "base64" ],
|
[ "busybox.exe", "base64", "base64" ],
|
||||||
[ "busybox.exe", "basename", "basename" ],
|
[ "busybox.exe", "basename", "basename" ],
|
||||||
[ "busybox.exe", "bash", "bash" ],
|
[ "busybox.exe", "bash", "bash", "-l" ],
|
||||||
[ "busybox.exe", "bbconfig", "bbconfig" ],
|
[ "busybox.exe", "bbconfig", "bbconfig" ],
|
||||||
[ "busybox.exe", "bunzip2", "bunzip2" ],
|
[ "busybox.exe", "bunzip2", "bunzip2" ],
|
||||||
[ "busybox.exe", "bzcat", "bzcat" ],
|
[ "busybox.exe", "bzcat", "bzcat" ],
|
||||||
@ -119,5 +119,16 @@
|
|||||||
[ "busybox.exe", "xzcat", "xzcat" ],
|
[ "busybox.exe", "xzcat", "xzcat" ],
|
||||||
[ "busybox.exe", "yes", "yes" ],
|
[ "busybox.exe", "yes", "yes" ],
|
||||||
[ "busybox.exe", "zcat", "zcat" ]
|
[ "busybox.exe", "zcat", "zcat" ]
|
||||||
]
|
],
|
||||||
|
"post_install": "
|
||||||
|
if(!(test-path ~/.profile)) {
|
||||||
|
'creating ~/.profile'
|
||||||
|
@\"
|
||||||
|
if [ -e ~/.bashrc ]
|
||||||
|
then
|
||||||
|
source ~/.bashrc
|
||||||
|
fi
|
||||||
|
\"@ | out-file -en oem ~/.profile
|
||||||
|
}
|
||||||
|
"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user