Tag: zsh的

Shell Prompt Customization?

我已经在多个系统上使用了oh_my_zsh(并且使用bash_it修改)并且通常对它很满意,尽管我讨厌它的自动校正function并且通常会将其关闭。 我通常的shell是zsh,我真的只想要提示中的三件事: 当前目录/或pwd。 Git状态和分支。 ls的颜色输出(在ls命令上,而不是在提示符中)。 其余的只是金光闪闪而且经常令人恼火。 通过使用这些shell脚本,我在cpu周期中为我想要的东西付出了太多。 任何建议,使用这些脚本或作为单独的shell脚本。 我可以使用zsh或bash。

重置Zsh配置?

昨天我安装了Zsh,并试图配置一些东西,但不知怎的,一切都搞砸了。 很多命令都不起作用,我在〜/ .zshrc中完成了PROMPT ,但它也无法正常工作。 例如,我正在尝试搜索某些内容: 现在你可以看到我也没有提示名称,即使我在〜/ .zshrc文件中添加了PROMPT =“….”配置。 是否有可能以某种方式重置整个配置? zsh echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/mosquito/HP_Fortify/HP_Fortify_SCA_and_Apps_3.80/bin:/home/mosquito/HP_Fortify/HP_Fortify_SCA_and_Apps_3.80/bin zsh cat /etc/shells /etc/shells: valid login shells /bin/sh /bin/dash /bin/bash /bin/rbash /bin/zsh /usr/bin/zsh

配置检测命令是否不存在,建议安装

是否可以配置zsh shell以显示命令不存在时bash显示的内容,类似于: kahless:~$ sysv-rc-conf The program ‘sysv-rc-conf’ is currently not installed. You can install it by typing: sudo apt-get install sysv-rc-conf 而不是ZSH提示: [kahless /home/teward]% sysv-rc-conf zsh: command not found: sysv-rc-conf 注意我不想更改提示本身,但我想将结果从zsh: command not found类似bash的输出。 The program ‘progname’ is currently not installed. You can install it by typing: The program ‘progname’ is currently not installed. You […]