Show More
@@ -72,17 +72,17 b' def default_aliases():' | |||
|
72 | 72 | ] |
|
73 | 73 | else: |
|
74 | 74 | # BSD, OSX, etc. |
|
75 | ls_aliases = [('ls', 'ls -F'), | |
|
75 | ls_aliases = [('ls', 'ls -F -G'), | |
|
76 | 76 | # long ls |
|
77 | ('ll', 'ls -F -l'), | |
|
77 | ('ll', 'ls -F -l -G'), | |
|
78 | 78 | # ls normal files only |
|
79 | ('lf', 'ls -F -l %l | grep ^-'), | |
|
79 | ('lf', 'ls -F -l -G %l | grep ^-'), | |
|
80 | 80 | # ls symbolic links |
|
81 | ('lk', 'ls -F -l %l | grep ^l'), | |
|
81 | ('lk', 'ls -F -l -G %l | grep ^l'), | |
|
82 | 82 | # directories or links to directories, |
|
83 | ('ldir', 'ls -F -l %l | grep /$'), | |
|
83 | ('ldir', 'ls -F -G -l %l | grep /$'), | |
|
84 | 84 | # things which are executable |
|
85 | ('lx', 'ls -F -l %l | grep ^-..x'), | |
|
85 | ('lx', 'ls -F -l -G %l | grep ^-..x'), | |
|
86 | 86 | ] |
|
87 | 87 | default_aliases = default_aliases + ls_aliases |
|
88 | 88 | elif os.name in ['nt', 'dos']: |
@@ -182,6 +182,7 b' class OSMagics(Magics):' | |||
|
182 | 182 | try: |
|
183 | 183 | # Removes dots from the name since ipython |
|
184 | 184 | # will assume names with dots to be python. |
|
185 | if ff not in self.shell.alias_manager: | |
|
185 | 186 | self.shell.alias_manager.define_alias( |
|
186 | 187 | ff.replace('.',''), ff) |
|
187 | 188 | except InvalidAliasError: |
General Comments 0
You need to be logged in to leave comments.
Login now