linux构建桌面环境,从零开始构建Archlinux桌面环境

引用:

autoload -U promptinit

promptinit

autoload -U compinit

compinit

export HISTFILE=~/.zsh_history

export HISTSIZE=1000

export SAVEHIST=1000

setopt AUTO_CD

setopt APPEND_HISTORY

setopt AUTO_LIST

setopt AUTO_MENU

setopt SHARE_HISTORY

eval `dircolors -b`

source .aliasrc

# key bindings

bindkey "\e[1~" beginning-of-line

bindkey "\e[2~" insert-last-word

bindkey "\e[3~" delete-char

bindkey "\e[4~" end-of-line

bindkey "\e[5~" backward-word

bindkey "\e[6~" forward-word

bindkey "\e[A" up-line-or-search

bindkey "\e[B" down-line-or-search

bindkey "\e[C" forward-char

bindkey "\e[D" backward-char

# for rxvt

bindkey "\e[8~" end-of-line

bindkey "\e[7~" beginning-of-line

# for non RH/Debian xterm, can't hurt for RH/DEbian xterm

bindkey "\eOH" beginning-of-line

bindkey "\eOF" end-of-line

# for freebsd console

bindkey "\e[H" beginning-of-line

bindkey "\e[F" end-of-line

# completion in the middle of a line

bindkey '^i' expand-or-complete-prefix

export PS1="$(print '%{\e[1;31m%}%?%{\e[0m%}') $(print '%{\e[1;33m%}%n%{\e[0m%}') $(print '%{\e[1m%}@%{\e[0m%}') $(print '%{\e[1;35m%}%y%{\e[0m%}') $(print '%{\e[1m%}%#%{\e[0m%}') "

export PS2="$(print '%{\e[1;34m%}%_%{\e[0m%}')"

export RPROMPT="$(print '%{\e[1;34m%}%~%{\e[0m%}')"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值