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