当前位置: 首页 > wzjs >正文

上海 专业网站建设成都市 网站建设

上海 专业网站建设,成都市 网站建设,企业法人查询系统官网,做动漫网站侵权吗以下是关于 ble.sh 的安装和使用指南: 安装 ble.sh ble.sh 是一个 Bash Line Editor,提供了类似于 zsh-autosuggestions 的自动补全和语法高亮功能。以下是安装步骤: 克隆 ble.sh 仓库: git clone --recursive https://github.c…

以下是关于 ble.sh 的安装和使用指南:

安装 ble.sh

ble.sh 是一个 Bash Line Editor,提供了类似于 zsh-autosuggestions 的自动补全和语法高亮功能。以下是安装步骤:

  1. 克隆 ble.sh 仓库

    git clone --recursive https://github.com/akinomyoga/ble.sh.git
    
  2. 安装 ble.sh

    make -C ble.sh install PREFIX=~/.local
    
  3. 配置 Bashrc

    echo 'source ~/.local/share/blesh/ble.sh' >> ~/.bashrc
    
  4. 重启终端或运行以下命令使配置生效

    source ~/.bashrc
    

使用 ble.sh

主要功能

  • 自动补全:ble.sh 提供基于命令历史和文件路径的自动补全功能。
  • 语法高亮:支持对复杂命令结构的语法高亮,包括嵌套命令和多个 here 文档等。
  • 菜单式补全:使用 Tab 键可以在候选列表中选择补全项。

自定义颜色设置

如果你想自定义 ble.sh 的颜色设置,可以使用 ble-face 命令。要使这些设置持久化,请将它们添加到 ~/.blerc 文件中。

  1. 创建或编辑 ~/.blerc 文件

    touch ~/.blerc
    
  2. 在 ~/.blerc 中添加颜色设置

    # 示例:设置命令行输入的背景色和前景色
    ble-face --set background '#000000' --set foreground '#ffffff'
    
  3. 保存并退出编辑器


常见问题

  • 安装后无法生效:确保已经正确添加了 source ~/.local/share/blesh/ble.sh.bashrc 文件中,并重启终端或手动运行 source ~/.bashrc
  • 颜色设置不持久:将颜色设置添加到 ~/.blerc 文件中,以使其在每次启动时自动应用。

通过这些步骤,你可以成功安装和使用 ble.sh,享受其带来的自动补全和语法高亮功能!

Citations:
[1] https://forum.manjaro.org/t/can-you-help-me-install-ble-sh/119252
[2] https://www.baeldung.com/linux/shell-add-syntax-highlighting-other-features
[3] https://github.com/akinomyoga/ble.sh
[4] https://bash.forret.com/2022/08/ble-sh-%E2%80%95bash-line-editor%E2%80%95/
[5] https://yinan.me/shell-auto-suggestions.html
[6] https://superuser.com/questions/1837033/changed-color-settings-of-ble-sh-bash-terminal-are-not-applied
[7] https://github.com/ohmybash/oh-my-bash/issues/108
[8] https://superuser.com/questions/1512618/autocompletion-background-colour-in-ble-sh
[9] https://www.reddit.com/r/bash/comments/15t7q2h/is_there_zshfishlike_autosuggestions_completions/
[10] https://github.com/akinomyoga/ble.sh/discussions/254
[11] https://www.reddit.com/r/bash/comments/1d52uu3/many_open_issues_for_blesh_bash_line_editor/
[12] https://superuser.com/questions/288714/bash-autocomplete-like-zsh
[13] https://forum.atuin.sh/t/atuin-bash-and-ble-sh/175
[14] https://forums.linuxmint.com/viewtopic.php?t=400895
[15] https://www.reddit.com/r/bash/comments/1gzn6gu/blesh_performance_tune_help/
[16] https://www.codyhiar.com/blog/switching-back-to-bash-from-zsh/
[17] https://forums.gentoo.org/viewtopic-t-1167425-start-0-postdays-0-postorder-asc-highlight-.html?sid=0d669cf37d07f88c3777bba4b6e63aec
[18] https://askubuntu.com/questions/1493857/powershell-like-history-auto-suggestion-for-bash
[19] https://discussion.fedoraproject.org/t/telometto-ble-sh/38948
[20] https://github.com/akinomyoga/ble.sh/issues/178
[21] https://unix.stackexchange.com/questions/649545/how-do-i-show-a-bash-autocomplete-result-as-a-faded-text-in-the-terminal
[22] https://unix.stackexchange.com/questions/109366/does-bash-have-similar-features-such-as-fishs-autosuggestions-and-highlighting
[23] https://github.com/akinomyoga/ble.sh/discussions/411
[24] https://www.youtube.com/watch?v=rFNzCMU-wlI
[25] https://wiki.archlinux.org/title/Bash
[26] https://blesh.net/interface/
[27] https://dev.to/goranvasic/using-zsh-and-zsh-autosuggestions-on-windows-terminal-with-oh-my-posh-theme-do6
[28] https://github.com/akinomyoga/ble.sh/releases
[29] https://harduex.com/blog/fish-like-autosuggestions-in-bash-shell/

http://www.dtcms.com/wzjs/564558.html

相关文章:

  • 有名做网站公司购物网站排名2017
  • 东莞网站建设定制网站开发集成环境
  • 想换掉做网站的公司seo优化
  • 我们是设计师 网站建设专家开一家公司需要具备什么条件
  • 三门峡市湖滨区建设局网站湖南网站排名优化公司
  • 个人网站做哪些内容网店美工的意义与发展
  • 做ppt必备网站怎么找网站
  • 电子商务网站建设与管理 总结网站设计开发平台
  • 企业cms建站系统工程材料价格查询
  • 盘锦网站建设平台seo优化网站
  • 广州网站建设服务商响应式网站和普通网站
  • 自己开发网站怎么开发x wordpress theme
  • 可以做立体图形的网站网站开发协义
  • 婚庆摄影网站模板网站怎么做登录模块
  • asp网站配置114推广平台
  • 网站开发的国内外现状山东企业网站建设
  • 自己做网站推广在那个网站开发一块地需要多少钱
  • wordpress站点标题图片塘沽做网站比较好的
  • 最新网站域名ip地址查询营销系统四大系统
  • 全国网站建设公司有多少家app网站建设软件
  • 问题反馈的网站怎么做seo计费管理系统
  • 山东专业网站解决方案制作十大erp系统
  • 凡科 预约网站最好看的直播免费的
  • 常熟建设银行 招聘网站在网站做电子画册
  • 建站知乎宁波建站价格
  • 网站卖东西怎么做的江苏五星建设网站
  • 描述一下网站建设的基本流程saas云建站
  • 深圳著名设计网站哪些网站可以做调查问卷
  • 塘厦镇做网站廊坊关键词seo排名网站
  • 有口碑的郑州网站建设公司网站怎么自己制作