• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

sergev/bash-commander: Version of the GNU Bourne Again shell extended with two-p ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

sergev/bash-commander

开源软件地址:

https://github.com/sergev/bash-commander

开源编程语言:

C 83.3%

开源软件介绍:

Bash Commander is a fork of GNU Bourne Again Shell. It's main feature is a visual two-panel mode, much like Midnight Commander and other text-mode visual shells.

bashc

By default, Bash Commander behaves exactly like traditional bash, so it's safe to install it as a system-wide /bin/sh. File panels are enabled only in interactive mode, when an environment variable COMMANDER is set. It is recommended to add the following lines to your ~/.bashrc script:

declare -x EDITOR="le"
declare -x VIEWER="le --read-only"
. /usr/local/etc/bash_commander

Bash Commander also has scripting capabilities. When function keys F1-F12 are pressed, it calls a shell function with appropriate name like commander_f1(), in case it is defined. When is pressed, a function commander_start_file() is called with a parameter - a name of the file. You can define the functions in your ~/.bashrc file. See /usr/local/etc/bash_commander as an example.

When building Bach Commander from sources, make sure the ncurses library is installed. On Ubuntu, you can install it by:

sudo apt-get install libncursesw5-dev

Best wishes,

--Serge Vakulenko




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap