echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc
した後に、
source ~/.zshrc
しても。
Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: Homebrew's sbin was not found in your PATH but you have installed formulae that put executables in /usr/local/sbin. Consider setting the PATH for example like so: echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc
と出ます。
環境は
echo $PATH
すると、
/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:/Users/user_name/.rbenv/versions/2.4.1/bin:/Users/kuguminatoyuto/.rbenv/shims:/usr/local/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/qt@5.5/bin:/Users/kuguminatoyuto/.pyenv/shims:/Users/kuguminatoyuto/.pyenv/bin:/Users/kuguminatoyuto/Library/Haskell/bin:/usr/local/opt/ghc@8.0/bin:/usr/local/opt/libpcap/bin:/usr/local/opt/ncurses/bin:/usr/local/opt/openssl@1.1/bin:/usr/local/var/pyenv/shims:/Users/kuguminatoyuto/.nodebrew/current/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin#openssl@1.1の設定
echo $SHELL
すると、
/bin/zsh
cat ~/.zshrc
すると、
export LANG=ja_JP.UTF-8 autoload colors colors case ${UID} in 0) PROMPT="%B%{${fg[green]}%}%/#%{${reset_color}%}%b " PROMPT2="%B%{${fg[green]}%}%_#%{${reset_color}%}%b " SPROMPT="%B%{${fg[green]}%}%r is correct? [n,y,a,e]:%{${reset_color}%}%b " [ -n "${REMOTEHOST}${SSH_CONNECTION}" ] && PROMPT="%{${fg[cyan]}%}$(echo ${HOST%%.*} | tr '[a-z]' '[A-Z]') ${PROMPT}" ;; *) PROMPT="%{${fg[green]}%}%/%%%{${reset_color}%} " PROMPT2="%{${fg[green]}%}%_%%%{${reset_color}%} " SPROMPT="%{${fg[green]}%}%r is correct? [n,y,a,e]:%{${reset_color}%} " [ -n "${REMOTEHOST}${SSH_CONNECTION}" ] && PROMPT="%{${fg[cyan]}%}$(echo ${HOST%%.*} | tr '[a-z]' '[A-Z]') ${PROMPT}" ;; esac case "${OSTYPE}" in freebsd*|darwin*) alias ls="ls -G -w" ;; linux*) alias ls="ls --color" ;; esac # Path to your oh-my-zsh installation. export ZSH=/Users/kuguminatoyuto/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="robbyrussell" # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="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. # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # 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? (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) # User configuration export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" # export MANPATH="/usr/local/man:$MANPATH" source $ZSH/oh-my-zsh.sh # 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/dsa_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" export PATH=$HOME/.nodebrew/current/bin:$PATH export PYENV_ROOT=/usr/local/var/pyenv if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi # alias brew="env PATH=${PATH//Users/kuguminatoyuto/.phpenv/shims:/} brew" alias brew="PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin brew" export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"#openssl@1.1の設定 alias vi="vim" # alias sjis="iconv -f cp932"#ターミナルで SJIS の文字化けを避ける export PATH="/usr/local/opt/ncurses/bin:$PATH" export PATH="/usr/local/opt/libpcap/bin:$PATH" export PATH="/usr/local/opt/ghc@8.0/bin:$PATH" export PATH=$HOME/Library/Haskell/bin:$PATH export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" export PATH="/usr/local/opt/qt@5.5/bin:$PATH" autoload -Uz colors colors PROMPT="%(?.%{${fg[green]}%}.%{${fg[red]}%})[%n@%m]%{${reset_color}%} %# " printf '\e[9;1t' p=$PATH;PATH=;/usr/libexec/path_helper -s >> ~/.zprofile;PATH=$p export PATH="/usr/local/opt/sqlite/bin:$PATH" export PATH=/usr/local/bin:"$PATH" eval "$(rbenv init -)" path=( /usr/local/{bin,sbin} /Users/user_name/.rbenv/versions/2.4.1/bin $path ) alias history='fc -l' export PATH="/usr/local/sbin:$PATH" export PATH="/usr/local/sbin:$PATH" export PATH="/usr/local/sbin:$PATH"
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/06/26 08:03
2019/06/29 07:49