Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # bash completion for the 'wp' command
- _wp_complete() {
- local cur=${COMP_WORDS[COMP_CWORD]}
- IFS=$'\n'; # want to preserve spaces at the end
- local opts="$(wp cli completions --line="$COMP_LINE" --point="$COMP_POINT")"
- if [[ "$opts" =~ \<file\>\s* ]]
- then
- COMPREPLY=( $(compgen -f -- $cur) )
- elif [[ $opts = "" ]]
- then
- COMPREPLY=( $(compgen -f -- $cur) )
- else
- COMPREPLY=( ${opts[*]} )
- fi
- }
- complete -o nospace -F _wp_complete wp
- # bash-completion
- if [ -f $(brew --prefix)/etc/bash_completion ]; then
- . $(brew --prefix)/etc/bash_completion
- fi
- export GREP_OPTIONS="--color=auto"
- export GREP_COLOR="4;33"
- export CLICOLOR="auto"
- #Colors
- NO_COLOR="\[\e[0m\]"
- BLACK="\[\033[0;30m\]"
- RED="\[\033[0;31m\]"
- GREEN="\[\033[0;32m\]"
- YELLOW="\[\033[0;33m\]"
- BLUE="\[\033[0;34m\]"
- MAGENTA="\[\033[0;35m\]"
- CYAN="\[\033[0;36m\]"
- WHITE="\[\033[0;37m\]"
- GIT_PS1_SHOWDIRTYSTATE=true
- GIT_PS1_SHOWSTASHSTATE=true
- GIT_PS1_SHOWUNTRACKEDFILES=true
- GIT_STATUS='$(__git_ps1 "(%s)")'
- export PS1="${BLUE}\u${GREEN}@${CYAN}\h${GREEN}:${RED}\W${YELLOW}${GIT_STATUS}${GREEN}\$${NO_COLOR} "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement