标签:alt tin red name weekly x86 span osi flag
First:
安装好zsh和oh-my-zsh
Second:
接下来就可以开始享受了
主题:cloud 满满的爱心~~
设置方法:vim ~/.zshrc, 找到ZSH_THEME=“”,这句话,在双引号里面写上cloud就可以啦!
如果你在里面写的是random,每次开启终端的主题将是随机的!酷酷酷!
当然你也可以自己找主题,oh-my-zsh里面带有主题了,主题都在以下这个文件夹里,可以进去找自己喜欢的
~/.oh-my-zsh/themes
插件:
1、git
2、pip
这两个没什么讲的
3、sudo
当我们输入命令需要管理员身份时,不必让光标回到开始打一个sudo,可以直接按两次ESC,就会自动帮你加上sudo
4、thefuck
当我们输入命令错误时,输入fuck,骂一下他,终端就是乖乖的给我们正确的指令选择啦!(这个插件需要自己下
5、autojump
在终端输入d,可以显示刚刚走过的路径,然后按数字选择进入哪一个目录,就像这样,不过我还不是很会用嘻嘻
6、web-search
直接在终端使用浏览器搜索,可以百度 谷歌
7、last-working-dir
可以记录我退出终端时所在的路径,再次打开时还在这个路径
8、zsh-syntax-highlighting
shell下的语法高亮,(这个也要自己下,命令如下)
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
除了以上的两个插件需要自己下载,其他都不需要的。
设置方法:vim ~/.zshrc 在里面找到plugins=()
然后在括号里加上想要的插件就可以了。
plugins=( git pip sudo thefuck autojump web-search last-working-dir zsh-syntax-highlighting )
以上步骤操作完后,重启终端,输入source .zshrc,就ok了!
注意每次添加插件以后,都要进行source .zshrc一下,让这些插件运行起来。
另外,我的截图软件的scrot,查看图片是用gwenview
scrot -s:可以自己选择截图的范围
# If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/home/jiaaaaaaaqi/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes ZSH_THEME="cloud" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load # a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ # If set to an empty array, this variable will have no effect. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" # Uncomment the following line to use hyphen-insensitive completion. # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" # Uncomment the following line to disable bi-weekly auto-update checks. # DISABLE_AUTO_UPDATE="true" # Uncomment the following line to change how often to auto-update (in days). # export UPDATE_ZSH_DAYS=13 # Uncomment the following line to disable colors in ls. # DISABLE_LS_COLORS="true" # Uncomment the following line to disable auto-setting terminal title. # DISABLE_AUTO_TITLE="true" # Uncomment the following line to enable command auto-correction. # ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion. # COMPLETION_WAITING_DOTS="true" # Uncomment the following line if you want to disable marking untracked files # under VCS as dirty. This makes repository status check for large repositories # much, much faster. # DISABLE_UNTRACKED_FILES_DIRTY="true" # Uncomment the following line if you want to change the command execution time # stamp shown in the history command output. # You can set one of the optional three formats: # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # or set a custom format using the strftime function format specifications, # see ‘man strftime‘ for details. # HIST_STAMPS="mm/dd/yyyy" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder # Which plugins would you like to load? # Standard plugins can be found in ~/.oh-my-zsh/plugins/* # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=( git pip sudo thefuck autojump web-search last-working-dir zsh-syntax-highlighting ) source $ZSH/oh-my-zsh.sh # User configuration # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment # export LANG=en_US.UTF-8 # Preferred editor for local and remote sessions # if [[ -n $SSH_CONNECTION ]]; then # export EDITOR=‘vim‘ # else # export EDITOR=‘mvim‘ # fi # Compilation flags # export ARCHFLAGS="-arch x86_64" # ssh # export SSH_KEY_PATH="~/.ssh/rsa_id" # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. # For a full list of active aliases, run `alias`. # # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh"
zsh!oh-my-zsh! 好看的主题和插件以及我的.zshrc
标签:alt tin red name weekly x86 span osi flag
原文地址:https://www.cnblogs.com/H-Riven/p/10474301.html