Skip to content

Commit d73a000

Browse files
author
kernelsmith
committed
changed output format of 'alias' per egypt's suggestion
now the output is copy pasteable to an rc file as valid alias commands
1 parent 4953fda commit d73a000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/alias.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def cmd_alias(*args)
5252
'Header' => "Current Aliases",
5353
'Prefix' => "\n",
5454
'Postfix' => "\n",
55-
'Columns' => [ 'Alias Name', 'Alias Value' ]
55+
'Columns' => [ '', 'Alias Name', 'Alias Value' ]
5656
)
5757
@aliases.each_pair do |key,val|
58-
tbl << [key,val]
58+
tbl << ["alias",key,val]
5959
end
6060
return print(tbl.to_s)
6161
end

0 commit comments

Comments
 (0)