zsh

ubuntu 主题和zsh终端

匿名 (未验证) 提交于 2019-12-03 00:39:02
ubuntu 主题和zsh终端 sudo add-apt-repository ppa:noobslab/themes sudo apt-get update sudo apt-get install flatabulous-theme sudo add-apt-repository ppa:noobslab/icon sudo apt-get update sudo apt-get install ultra-flat-icons 2) 安装zsh sudo apt install zsh zsh --version sudo chsh -s $(which zsh)`设置zsh为默认shell 注销重新登录 echo $SHELL 确认zsh为默认SHELL 3) 从github安装oh-my-zsh,快速配置zsh 参考: zsh安装 https://www.linuxidc.com/Linux/2017-10/147431.htm 原文:https://www.cnblogs.com/jk0011/p/9270432.html

Zsh: command not found: webpack

拈花ヽ惹草 提交于 2019-12-03 00:25:02
I'm learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used npm init --yes followed by npm install --save webpack Easy way. Install it globally. npm i -g webpack If you will work with webpack, install webpack-dev-server too npm i -g webpack-dev-server I recommend you first learn a bit about npm and then webpack . There is no need to install webpack globally. Try my way: First, in your package.json file, add this: "scripts": { "start": "webpack" }, Then, in your terminal, run $npm

Make zsh complete arguments from a file

假如想象 提交于 2019-12-03 00:22:58
zsh is great but its completion system is very diverse. And the documentation lacks good examples. Is there a template for completing for a specific application. The completion would get its match data from a file, separated by newlines? I tried modifying an older example of mine that takes match data "live": ~ % cat .zsh/completers/_jazzup #compdef jazz_up _arguments "2: :(`mpc lsplaylists|sed -e 's# #\\\\ #g'`)" I could supply cat my_file there instead of mpc invocation and so on but would there be a more elegant way to do this simple task? And that completion there is placement-specific:

ubuntu安装oh my zsh

匿名 (未验证) 提交于 2019-12-03 00:22:01
默认状况下Termial样式 Ubuntu系统默认状况下的终端样式如下: Ubuntu default terminal's style 有个知名的神奇:Oh-My-Zsh 可以让终端及美观又实用: Oh-My-Zsh agnoster theme install powerline font 今天就一步步的记录我安装Oh My Zsh 的过程 安装Oh-My-Zsh 安装Oh-My-Zsh之前必须安装zsh,否则会收到如下提示: Zsh is not installed! Please install zsh first! 安装zsh: sudo apt-get install zsh 安装zsh zsh --version 确认是否安装成功 sudo chsh -s $(which zsh) 设置zsh为默认shell 注销重新登录 设置完成之后,终端变成如下样式: ubuntu zsh style echo $SHELL 确认zsh是否是默认SHELL,输出 /usr/bin/zsh 安装Oh-My-Zsh 使用curl方式安装: sh -c " $(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh) " 默认安装完成Oh-My-Zsh的样式如下:(重启终端后有效)

iTerm2+oh-my-zsh配色

匿名 (未验证) 提交于 2019-12-03 00:15:02
效果图,很帅气有木有 一、首先安装 iTem2 安装好后的截图如下: 安装好后的截图 二、安装 oh-my-zsh 。 sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 卸载oh-my-zsh命令:uninstall_oh_my_zsh 安装oh-my-zsh 安装成功如下图: 成功安装oh-my-zsh 三、安装 Powerline 先安装 pip sudo easy_install pip 再安装 Powerline pip install powerline-status 四、安装 Meslo 字体库。 方法1、可以直接复制下面命令到终端中安装: # clone git clone https://github.com/powerline/fonts.git --depth=1 # install cd fonts ./install.sh # clean-up a bit cd .. rm -rf fonts 方法2、单独下载 Meslo 字体,点击 view raw 下载字体,然后安装;如下图 单独下载字体文件 3、配置item2:( iTerm2>Preferences>Profiles>Text>Change Font ),如下图:

Mac下安装oh my zsh之后配置环境变量失效问题

匿名 (未验证) 提交于 2019-12-03 00:11:01
背景:在刚拿到mac 的时候,使用了默认的bash,由于工作需要在电脑上安装了maven,在~/.bash_profile 文件中添加了maven的配置如下 $ cat ~/.bash_profile export M2_HOME=/Users/yingmi/software/apache-maven-3.6.0 export PATH=$PATH:$M2_HOME/bin 平时通过Terminal 使用 maven clean install来构建maven项目用的也很顺手。 前不久,看到了oh my zsh,相比于默认的bash 真的叫高端大气上档次(具体怎么安装oh my zsh 大家可以到官网查看安装说明)。 安装之后的某一天 $ mvn clean zsh: command not found: mvn 因为安装zsh,~/.bash_profile就不会被执行,解决办法有两种: vim ~/.zshrc 将你要配置到环境变量配置到该文件中即可 vim ~/.zshrc 将 source ~/.bash_profile 添加到末尾,这样~/.bash_profile配置的环境变量同样有效 然后 source ~/.zshrc即可 来源:博客园 作者: _再见理想 链接:https://www.cnblogs.com/exmyth/p/11567645.html

ZSH RPROMPT weird spacing?

倖福魔咒の 提交于 2019-12-03 00:07:56
Here is my ZSH prompt theme function git_prompt_info() { ref=$(git symbolic-ref HEAD 2> /dev/null) || return echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX" } PROMPT='$fg[yellow]%}⚡︎ $fg[cyan]%~ $(git_prompt_info) %{$reset_color%}→ ' ZSH_THEME_GIT_PROMPT_PREFIX="[git:" ZSH_THEME_GIT_PROMPT_SUFFIX="]$reset_color" ZSH_THEME_GIT_PROMPT_DIRTY="$fg[red]+" ZSH_THEME_GIT_PROMPT_CLEAN="$fg[green]" RPROMPT='%T' Which looks like When I move the $(git_prompt_info) to RPROMPT function git_prompt_info() { ref=$(git symbolic-ref HEAD 2> /dev/null) || return

mac + zsh + powerline

匿名 (未验证) 提交于 2019-12-03 00:06:01
1、设定zsh为默认shell 查看mac下面安装的默认shell $ cat / etc / shells # List of acceptable shells for chpass(1). # Ftpd will not allow users to connect who are not using # one of these shells. / bin / bash / bin / csh / bin / ksh / bin / sh / bin / tcsh / bin / zsh 设定默认shell为zsh $ chsh - s / bin / zsh $ sudo reboot $ echo $SHELL / bin / zsh 2、 安装 oh-my-zsh 安装 git $ brew install git 安装 oh-my-zsh $ wget https : //github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh 若不想要oh-my-zsh 可用命令卸载 $ uninstall_oh_my_zsh 3、 安装powerline $ pip3 install powerline - status 4、 安装 Meslo 字体库 安装方法一 字体库地址 https:/

zsh + on-my-zsh配置教程指南

匿名 (未验证) 提交于 2019-12-03 00:03:02
这里写自定义目录标题 准备 查看当前环境 shell 查看系统自带哪些 shell 安装 zsh 将 zsh 设置为默认 shell oh-my-zsh 安装oh-my-zsh 本文以 CentOS 7/Mac 为例,介绍 zsh 的配置使用教程。 准备 查看当前环境 shell echo $ SHELL 查看系统自带哪些 shell cat / etc / shells 安装 zsh // CentOS yum install zsh // mac安装 brew install zsh 将 zsh 设置为默认 shell // CentOS chsh - s / bin / zsh // Mac 如下 // 在 /etc/shells 文件中加入如下一行 / usr / local / bin / zsh // 接着运行 chsh - s / usr / local / bin / zsh 可以通过 echo $SHELL 查看当前默认的 shell,如果没有改为 /bin/zsh ,那么需要重启 shell。 oh-my-zsh 配置 zsh 是一件麻烦的事儿,爱折腾的程序猿怎么可能忍受?!于是,oh-my-zsh 出现了,有了这个东东,zsh 配置起来就方便多了! 安装oh-my-zsh 有若干安装方式,介绍三种: 1.自动安装 wget https : / / github

zsh compinit: insecure directories

安稳与你 提交于 2019-12-03 00:02:44
问题 What does it mean and how can I fix it? zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? Running the compaudit returns the follows: There are insecure directories: /usr/local/share/zsh/site-functions 回答1: This fixed it for me: $ cd /usr/local/share/zsh $ sudo chmod -R 755 ./site-functions Credit: a post on zsh mailing list EDIT: As pointed out by @biocyberman in the comments. You may need to update the owner of