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

上海做网站汉狮网络李江seo

上海做网站汉狮网络,李江seo,我的网站模板,定制礼品以下是关于 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/426908.html

相关文章:

  • 政府网站前台模板广州网络推广哪家好
  • 哪个网站专做水果批发今天最新新闻事件报道
  • 公司建立网站流程广告推广赚钱在哪接
  • 湛江网站建设外包网站制作平台
  • 淘宝佣金推广网站建设百度广告关键词价格表
  • 网站二级域名建站属于子站吗网页设计怎么做
  • 买邮箱的网站百度官方网
  • 买房的人都哭了吧企业新网站seo推广
  • 建设游戏网站十八大禁用黄app入口
  • PHP MySQL 网站开发实例各大搜索引擎收录入口
  • 邹城网站建设开发网站多少钱
  • 浏览器有些网页打不开是什么原因seo搜索优化服务
  • 趣闻网站如何做可以直接打开网站的网页
  • 大庆市建设局宫方网站太原百度seo排名软件
  • 企业网站建设 信科网络东莞网站建设平台
  • 网站建设功能评估表免费浏览网站推广
  • 合肥品牌网站建设互联网营销师是干什么的
  • 潍坊地区网站制作网页制作图片
  • led设计网站建设网站推广方案有哪些
  • 企业有域名怎么做网站全球网站访问量排名
  • 宝鸡网seo中文含义是什么
  • 辽宁省兴城做网站的站长之家的作用
  • 做美食类网站分析h5制作网站
  • ios6软件下载网站百度网盘搜索神器
  • 凯里网站建设公司哪家好今天新闻联播
  • 网站怎么改版自适应seo公司
  • 网站建设 意见征集网页优化seo公司
  • 孝仙洪高速公路建设指挥部网站windows优化大师靠谱吗
  • 怎样做网站反链html网页制作代码
  • 建设网站西安软件开发工程师