Show More
@@ -2670,6 +2670,7 b' Defaulting color scheme to \'NoColor\'"""' | |||
|
2670 | 2670 | parameter_s = parameter_s.strip() |
|
2671 | 2671 | #bkms = self.shell.persist.get("bookmarks",{}) |
|
2672 | 2672 | |
|
2673 | oldcwd = os.getcwd() | |
|
2673 | 2674 | numcd = re.match(r'(-)(\d+)$',parameter_s) |
|
2674 | 2675 | # jump in directory history by number |
|
2675 | 2676 | if numcd: |
@@ -2719,6 +2720,7 b' Defaulting color scheme to \'NoColor\'"""' | |||
|
2719 | 2720 | else: |
|
2720 | 2721 | cwd = os.getcwd() |
|
2721 | 2722 | dhist = self.shell.user_ns['_dh'] |
|
2723 | if oldcwd != cwd: | |
|
2722 | 2724 | dhist.append(cwd) |
|
2723 | 2725 | self.db['dhist'] = compress_dhist(dhist)[-100:] |
|
2724 | 2726 | |
@@ -2728,6 +2730,8 b' Defaulting color scheme to \'NoColor\'"""' | |||
|
2728 | 2730 | platutils.set_term_title("IPy ~") |
|
2729 | 2731 | cwd = os.getcwd() |
|
2730 | 2732 | dhist = self.shell.user_ns['_dh'] |
|
2733 | ||
|
2734 | if oldcwd != cwd: | |
|
2731 | 2735 | dhist.append(cwd) |
|
2732 | 2736 | self.db['dhist'] = compress_dhist(dhist)[-100:] |
|
2733 | 2737 | if not 'q' in opts and self.shell.user_ns['_dh']: |
General Comments 0
You need to be logged in to leave comments.
Login now