Xi *_*ang 12 macos gedit
当我使用Linux笔记本电脑作为我的开发机器时,我曾经在终端中使用"gedit xxxx".现在我转到MacBook,我想做同样的事情.
我知道我可以在命令行中打开gedit,比如"open gedit",但是我可以添加文件名吗?否则我必须使用vim.我不是vim的粉丝.
小智 10
加
alias gedit="open -a gedit"
到~/.bash_profile:
~/.bash_profile
现在,您将能够直接从命令行进行gedit.
pro*_*son 5
尝试:
open -a /path/to/gedit /path/to/file.txt
归档时间:
13 年,7 月 前
查看次数:
31214 次
最近记录:
12 年,3 月 前