-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ajump_exit() called from bash exit command so that closing the shell …
…saves the time spent in that last used directory. This is often the most important directory (you navigate there and stay there for the whole of your session) so it makes sense to implement this. Closes GH-2
- Loading branch information
phill
authored and
phill
committed
May 14, 2009
1 parent
9524a13
commit 70d9799
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- /tmp/bj/bash-4.0/builtins/exit.def 2009-01-04 19:32:22.000000000 +0000 | ||
+++ bash-4.0/builtins/exit.def 2009-05-14 22:04:29.000000000 +0100 | ||
@@ -46,6 +46,10 @@ | ||
#include "common.h" | ||
#include "builtext.h" /* for jobs_builtin */ | ||
|
||
+#if defined (AJUMP_DEF) | ||
+ #include "ajump.def" | ||
+#endif | ||
+ | ||
extern int check_jobs_at_exit; | ||
extern int last_command_exit_value; | ||
extern int running_trap, trap_saved_exit_value; | ||
@@ -66,6 +70,8 @@ | ||
fflush (stderr); | ||
} | ||
|
||
+ ajump_exit(); | ||
+ | ||
return (exit_or_logout (list)); | ||
} | ||
|