Skip to content

Commit 62d96f3

Browse files
committed
add workaround for nitrous
1 parent 66f5243 commit 62d96f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bash_dao.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ type (
5353
)
5454

5555
func init() {
56+
// For nitrous store the settings in .bash_profile since autoparts overrides
57+
// the settings
58+
if _, err := os.Stat(filepath.Join(os.Getenv("HOME"), ".nitrousboxrc.sample")); err == nil {
59+
bashShell.configFileName = filepath.Join(os.Getenv("HOME"), ".bash_profile")
60+
}
61+
5662
RegisterDAO(1000, func() bool {
5763
pid := os.Getpid()
5864
for pid > 0 {

0 commit comments

Comments
 (0)