mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-22 05:23:23 +00:00
Compare commits
1 Commits
1912bd1600
...
69dc1ecbd1
Author | SHA1 | Date | |
---|---|---|---|
69dc1ecbd1 |
9
main.go
9
main.go
@ -6,7 +6,6 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"os/exec"
|
||||
"os/user"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
@ -116,13 +115,7 @@ func main() {
|
||||
|
||||
// Set $SHELL if the user wants to
|
||||
if *setshflag {
|
||||
os.Setenv("SHELL", "hilbish")
|
||||
|
||||
path, err := exec.LookPath("hilbish")
|
||||
if err == nil {
|
||||
os.Setenv("SHELL", path)
|
||||
}
|
||||
|
||||
os.Setenv("SHELL", os.Args[0])
|
||||
}
|
||||
|
||||
lr = newLineReader("", false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user