def rm_alias(alias):
 if (not get_target(alias)):
  return True
 lines = __parse_aliases()
 out = []
 for (line_alias, line_target, line_comment) in lines:
  if (line_alias != alias):
   out.append((line_alias, line_target, line_comment))
 __write_aliases_file(out)
 return True

def rm_alias ( alias ) : if ( not get_target ( alias ) ) : return True lines = __parse_aliases ( ) out = [ ] for ( line_alias , line_target , line_comment ) in lines : if ( line_alias != alias ) : out . append ( ( line_alias , line_target , line_comment ) ) __write_aliases_file ( out ) return True
remove an entry from the aliases file cli example: .