mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-01 12:39:46 +08:00
Merge pull request #192 from grelkin-features/columnize-marks-output
This commit is contained in:
commit
591330b12c
|
@ -16,11 +16,13 @@ function marks
|
||||||
echo "No marks currently defined."
|
echo "No marks currently defined."
|
||||||
else
|
else
|
||||||
set -l current_dir (pwd)
|
set -l current_dir (pwd)
|
||||||
|
set -l output ""
|
||||||
for mark_name in $mark_list
|
for mark_name in $mark_list
|
||||||
cd $MARKPATH/$mark_name
|
cd $MARKPATH/$mark_name
|
||||||
set -l real_path (pwd)
|
set -l real_path (pwd)
|
||||||
echo "$mark_name -> $real_path"
|
set output "$output$mark_name -> $real_path"\n
|
||||||
end
|
end
|
||||||
|
echo $output | column -t
|
||||||
cd $current_dir
|
cd $current_dir
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user