简体   繁体   English

从终端Linux运行jedit单个命令

[英]run jedit single command from terminal linux

I'm trying to run jedit from the terminal on fedora. 我正在尝试从fedora上的终端运行jedit。 its installed to the path /usr/local/share.... How do I get it to run "jedit" from the terminal rather than switching to the directory and typing java -jar jedit.jar to execute the program. 将其安装到路径/ usr / local / share ....如何使它从终端运行“ jedit”,而不是切换到目录并键入java -jar jedit.jar来执行程序。

I created a sh file in that same direectory with "java -jar jedit.jar" and added that directory to ~/.bashrc. 我使用“ java -jar jedit.jar”在同一目录中创建了一个sh文件,并将该目录添加到〜/ .bashrc中。 I'm aware that I need to type "sh file.sh" to run that file but I know there is a gap in my knowledge somewhere. 我知道我需要输入“ sh file.sh”来运行该文件,但我知道我的某个地方存在知识空白。

i want to use jedit as a commit editor for git and be able to change core.editor='jedit -w' in git config someone please help 我想使用jedit作为git的提交编辑器,并且能够在git config中更改core.editor ='jedit -w',请帮助

I assume you used the Java installer? 我假设您使用过Java安装程序?

If this is the case, the installer should also have placed a jedit launch script in /usr/local/bin which should be in your PATH by default, so calling jedit from a terminal should instantly work after installation. 如果是这种情况,安装程序还应该将jedit启动脚本放在默认情况下应位于PATH中的/usr/local/bin中,因此从终端调用jedit应该在安装后立即jedit

If it does not work, then please check whether the file jedit is available in /usr/local/bin and whether /usr/local/bin is in your PATH environment variable. 如果不起作用,请检查/usr/local/bin是否有文件jedit ,以及PATH环境变量中是否存在/usr/local/bin

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

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