Some prompt updates, and add COMPOSER_MEMORY_LIMIT setting.
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
#
|
#
|
||||||
# .bash_profile
|
# .zshrc
|
||||||
#
|
#
|
||||||
# @author Jeff Geerling
|
# @author Jeff Geerling
|
||||||
# @see .inputrc
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# Colors.
|
# Colors.
|
||||||
@@ -10,14 +9,20 @@ unset LSCOLORS
|
|||||||
export CLICOLOR=1
|
export CLICOLOR=1
|
||||||
export CLICOLOR_FORCE=1
|
export CLICOLOR_FORCE=1
|
||||||
|
|
||||||
|
# Don't require escaping globbing characters in zsh.
|
||||||
|
unsetopt nomatch
|
||||||
|
|
||||||
# Nicer prompt.
|
# Nicer prompt.
|
||||||
export PS1="%F{green} %*%F %3~ %F{white}$ "
|
export PS1=$'\n'"%F{green} %*%F %3~ %F{white}$ "
|
||||||
|
|
||||||
# Enable plugins.
|
# Enable plugins.
|
||||||
plugins=(git brew history kubectl)
|
plugins=(git brew history kubectl history-substring-search)
|
||||||
|
|
||||||
# Custom $PATH with extra locations.
|
# Custom $PATH with extra locations.
|
||||||
export PATH=/usr/local/bin:/usr/local/sbin:$HOME/bin:/usr/local/git/bin:$HOME/.composer/vendor/bin:$PATH
|
export PATH=/usr/local/bin:/usr/local/sbin:$HOME/bin:$HOME/go/bin:/usr/local/git/bin:$HOME/.composer/vendor/bin:$PATH
|
||||||
|
|
||||||
|
# Bash-style time output.
|
||||||
|
export TIMEFMT=$'\nreal\t%*E\nuser\t%*U\nsys\t%*S'
|
||||||
|
|
||||||
# Include alias file (if present) containing aliases for ssh, etc.
|
# Include alias file (if present) containing aliases for ssh, etc.
|
||||||
if [ -f ~/.aliases ]
|
if [ -f ~/.aliases ]
|
||||||
@@ -25,6 +30,11 @@ then
|
|||||||
source ~/.aliases
|
source ~/.aliases
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Allow history search via up/down keys.
|
||||||
|
source /usr/local/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||||
|
bindkey "^[[A" history-substring-search-up
|
||||||
|
bindkey "^[[B" history-substring-search-down
|
||||||
|
|
||||||
# Git aliases.
|
# Git aliases.
|
||||||
alias gs='git status'
|
alias gs='git status'
|
||||||
alias gc='git commit'
|
alias gc='git commit'
|
||||||
@@ -59,9 +69,6 @@ function gsync() {
|
|||||||
# Tell homebrew to not autoupdate every single time I run it (just once a week).
|
# Tell homebrew to not autoupdate every single time I run it (just once a week).
|
||||||
export HOMEBREW_AUTO_UPDATE_SECS=604800
|
export HOMEBREW_AUTO_UPDATE_SECS=604800
|
||||||
|
|
||||||
# Python settings.
|
|
||||||
export PYTHONPATH="/usr/local/lib/python2.7/site-packages"
|
|
||||||
|
|
||||||
# Super useful Docker container oneshots.
|
# Super useful Docker container oneshots.
|
||||||
# Usage: dockrun, or dockrun [centos7|fedora27|debian9|debian8|ubuntu1404|etc.]
|
# Usage: dockrun, or dockrun [centos7|fedora27|debian9|debian8|ubuntu1404|etc.]
|
||||||
dockrun() {
|
dockrun() {
|
||||||
@@ -89,6 +96,9 @@ knownrm() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow Composer to use almost as much RAM as Chrome.
|
||||||
|
export COMPOSER_MEMORY_LIMIT=-1
|
||||||
|
|
||||||
# Ask for confirmation when 'prod' is in a command string.
|
# Ask for confirmation when 'prod' is in a command string.
|
||||||
#prod_command_trap () {
|
#prod_command_trap () {
|
||||||
# if [[ $BASH_COMMAND == *prod* ]]
|
# if [[ $BASH_COMMAND == *prod* ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user