1 Star 0 Fork 0

毛尧堂/arch-zsh-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
arch-zsh-prompt 999 Bytes
一键复制 编辑 原始数据 按行查看 历史
毛尧堂 提交于 2024-08-18 16:11 . first commit
() {
emulate -L zsh
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
# Determine terminal capabilities.
{
if ! zmodload zsh/langinfo zsh/terminfo ||
[[ $langinfo[CODESET] != (utf|UTF)(-|)8 || $TERM == (dumb|linux) ]] ||
(( terminfo[colors] < 256 )); then
# Don't use the powerline config. It won't work on this terminal.
local USE_POWERLINE=false
# Define alias `x` if our parent process is `login`.
local parent
if { parent=$(</proc/$PPID/comm) } && [[ ${parent:t} == login ]]; then
alias x='startx ~/.xinitrc'
fi
fi
} 2>/dev/null
if [[ $USE_POWERLINE == false ]]; then
# Use 8 colors and ASCII.
source /usr/share/zsh/p10k-portable.zsh
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=black,bold'
else
# Use 256 colors and UNICODE.
source /usr/share/zsh/p10k.zsh
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=244'
fi
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mao-yaotang/arch-zsh-config.git
[email protected]:mao-yaotang/arch-zsh-config.git
mao-yaotang
arch-zsh-config
arch-zsh-config
master

搜索帮助