简体   繁体   English

在Mac OS终端中自动完成符号链接后如何添加斜杠?

[英]How to add slash after autocomplete for symbolic link in Mac os Terminal?

I have a problem, after 我有一个问题

ln -s point1 point2

When I try point1 and put "TAB" button - I need adding "/" to autocomplete, if this symlink point to directory. 当我尝试point1并放置“ TAB”按钮时-如果此符号链接指向目录,则需要在自动完成时添加“ /”。 I use Mac OS terminal. 我使用Mac OS终端。

Is it possible? 可能吗? Thank you! 谢谢!

As far as I know that depends on the autocompletion of the shell you are using. 据我所知,这取决于您正在使用的shell的自动完成功能。

If you are using Bash (which you probably are if you did not change your shell) look at the answer to this question 如果您使用的是Bash(如果未更改外壳,则可能是这样),请查看此问题的答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM