无Root配置zsh和Oh-my-zsh 发表于 2017-06-19 无root,系统里没有zsh的时候,无法用chsh切换zsh zsh安装zsh123456git clone https://github.com/zsh-users/zsh.gitcd zsh./Util/preconfig./configure --prefix=/ifswh1/BC_COM_P2/F13FTSNCKF1344/SHEtbyR/software/zsh/zshmakemake install 在 .bash_profile 加一行1exec /ifswh1/BC_COM_P2/F13FTSNCKF1344/SHEtbyR/software/zsh/zsh/bin/zsh oh-my-zsh安装oh-my-zsh12345git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh# 备份原来的.zshrccp ~/.zshrc ~/.zshrc.orig# 拷贝.zshrc模板cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc 修改.zshrc配置(Optional)123456789101112# oh-my-zsh目录 Path to your oh-my-zsh installation.export ZSH=$HOME/.oh-my-zsh# oh-my-zsh主题ZSH_THEME="michelebologna" ## ZSH_THEME="gentoo" # 备选1DISABLE_AUTO_UPDATE="true"plugins=(git)export LC_ALL=Csource $ZSH/oh-my-zsh.sh 更多oh-my-zsh主题 .zshrc其他配置规则和.bashrc几乎一样123456789101112131415161718192021222324252627282930#shortcutalias em='/usr/bin/emacs'alias ll='ls -l'alias la='ls -a'alias les='less -S -x4'alias ks='ls'alias ch='chmod +x'alias ee='exit'alias tt='top -u wanglizhong'alias sourcerc='source ~/.zshrc'alias head1='head -1'alias githelp='cat /home/wanglizhong/helpfile/git'# tmuxalias tls='tmux ls'alias tnew='tmux new -s'alias tatt='tmux att -t'alias tkill='tmux kill-session -t'# helpalias find-help='cat /home/wanglizhong/tools/find'alias awk-help='cat /home/wanglizhong/tools/awk'# qsubalias qs='qstat|sort -t" " -k1 -n|les -N'alias qd='qdel'alias qj='qstat -j'# PATHexport R_LIBS=/ifshk7/BC_PS/wanglizhong/R:$R_LIBS # !!!!!export PERL5LIB=/ifshk7/BC_PS/wanglizhong/perl5:/home/wanglizhong/software/vcftools/vcftools-build/lib/perl5/site_perl/5.8.8:$PERL5LIBexport LD_LIBRARY_PATH=/ifshk4/BC_PUB/biosoft/pipe/bc_paap/01.Usr/lib:/ifshk7/BC_PS/wanglizhong/lib64:/ifshk7/BC_PS/wanglizhong/lib:$LD_LIBRARY_PATHexport PATH=/ifshk7/BC_PS/wanglizhong/bin:$PATH