在Cygwin中/ bash的别名空间? [英] Spaces in Cygwin/bash aliases?

查看:148
本文介绍了在Cygwin中/ bash的别名空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图设置别名为​​我的Cygwin Bash shell,请运行包含在标准的Windows C程序:\\ Program Files文件子目录。不幸的是,alias命令真的不喜欢在目录名称空间,并没有什么我试着似乎工作。我试图得到以下运行:

I am attempting to set up aliases for my Cygwin bash shells, to run programs contained in the standard Windows C:\Program Files subdirectories. Unfortunately, the alias command really doesn't like spaces in a directory name, and nothing I've tried seems to work. I'm trying to get the following running:

alias npp='/cygdrive/c/Program Files/Notepad++/notepad++.exe'

我目前作弊,并使用软链接,但我会preFER使用的别名。

I am currently cheating and using a soft link, but I would prefer to use an alias.

推荐答案

转义字符:

别名NPP =/ cygdrive / C /程序\\文件/记事本++ /记事本++。exe文件

编辑:注意从单机到双引号的变化,以及

Note the change from single to double quotes as well.

这篇关于在Cygwin中/ bash的别名空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆