diff --git a/exec.go b/exec.go index 02e9d7d..cf8f208 100644 --- a/exec.go +++ b/exec.go @@ -19,7 +19,6 @@ func runInput(input string) { running = true cmdString := aliases.Resolve(input) - // If alias was found, use command alias hooks.Em.Emit("command.preexec", input, cmdString) // First try to load input, essentially compiling to bytecode diff --git a/lua.go b/lua.go index fc4ec47..b4678ea 100644 --- a/lua.go +++ b/lua.go @@ -72,18 +72,3 @@ func runConfig(confpath string) { l.DoString(minimalconf) } } - -func runLogin() { - if _, err := os.Stat(curuser.HomeDir + "/.hprofile.lua"); os.IsNotExist(err) { - return - } - if !login { - return - } - err := l.DoFile(curuser.HomeDir + "/.hprofile.lua") - if err != nil { - fmt.Fprintln(os.Stderr, err, - "\nAn error has occured while loading your login config!n") - } -} - diff --git a/main.go b/main.go index 097c78b..ae1f919 100644 --- a/main.go +++ b/main.go @@ -115,7 +115,6 @@ func main() { go handleSignals() luaInit() - runLogin() // If user's config doesn't exixt, if _, err := os.Stat(defaultConfPath); os.IsNotExist(err) && *configflag == defaultConfPath { // Read default from current directory