Show More
@@ -100,7 +100,7 b' def main():' | |||
|
100 | 100 | noext, ext = os.path.splitext(cmd) |
|
101 | 101 | key = mapper(noext) |
|
102 | 102 | if key not in ip.IP.alias_table: |
|
103 | ip.defalias(key, cmd) | |
|
103 | ip.defalias(key.replace('.',''), cmd) | |
|
104 | 104 | |
|
105 | 105 | # mglob combines 'find', recursion, exclusion... '%mglob?' to learn more |
|
106 | 106 | ip.load("IPython.external.mglob") |
@@ -2648,7 +2648,7 b' Defaulting color scheme to \'NoColor\'"""' | |||
|
2648 | 2648 | # each entry in the alias table must be (N,name), |
|
2649 | 2649 | # where N is the number of positional arguments of the |
|
2650 | 2650 | # alias. |
|
2651 | alias_table[ff] = (0,ff) | |
|
2651 | alias_table[ff.replace('.','')] = (0,ff) | |
|
2652 | 2652 | syscmdlist.append(ff) |
|
2653 | 2653 | else: |
|
2654 | 2654 | for pdir in path: |
@@ -2658,7 +2658,7 b' Defaulting color scheme to \'NoColor\'"""' | |||
|
2658 | 2658 | if isexec(ff) and base.lower() not in self.shell.no_alias: |
|
2659 | 2659 | if ext.lower() == '.exe': |
|
2660 | 2660 | ff = base |
|
2661 | alias_table[base.lower()] = (0,ff) | |
|
2661 | alias_table[base.lower().replace('.','')] = (0,ff) | |
|
2662 | 2662 | syscmdlist.append(ff) |
|
2663 | 2663 | # Make sure the alias table doesn't contain keywords or builtins |
|
2664 | 2664 | self.shell.alias_table_validate() |
General Comments 0
You need to be logged in to leave comments.
Login now