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