Compare commits
10 Commits
a20cf482f8
...
a615e6abb1
| Author | SHA1 | Date | |
|---|---|---|---|
| a615e6abb1 | |||
| 5dbd658fef | |||
| 5ad6ca593a | |||
| 70bc044a10 | |||
| 4c245cb47c | |||
| f05a9928e4 | |||
| 93f4a945c2 | |||
| fc5ff20836 | |||
| 3e84dc3c0b | |||
| 54ad5cea5a |
39
.zshrc
39
.zshrc
@@ -4,22 +4,30 @@ export ZSH_DISABLE_COMPFIX=true
|
||||
|
||||
# Update config once every 24 hours
|
||||
cd $HOME/.zcustom
|
||||
# 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)
|
||||
|
||||
case "`uname`" in
|
||||
Linux)
|
||||
STATARGS="-c %Z"
|
||||
alias df='df -x squashfs -x tmpfs -x devtmpfs'
|
||||
alias mount='mount -t ext3,ext4,cifs,nfs,nfs4,zfs,vfat,btrfs'
|
||||
alias open=xdg-open
|
||||
plugins=(asdf battery golang zsh-syntax-highlighting)
|
||||
;;
|
||||
Darwin)
|
||||
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
|
||||
STATARGS="-f %m"
|
||||
plugins=(asdf battery brew golang lein macos zsh-syntax-highlighting)
|
||||
;;
|
||||
OpenBSD)
|
||||
STATARGS="-f %m"
|
||||
plugins=(battery zsh-syntax-highlighting)
|
||||
;;
|
||||
FreeBSD)
|
||||
STATARGS="-f %m"
|
||||
plugins=(battery zsh-syntax-highlighting)
|
||||
;;
|
||||
*)
|
||||
echo "Error! Unknown system `uname`"
|
||||
@@ -86,17 +94,12 @@ DISABLE_UPDATE_PROMPT="true"
|
||||
# much faster.
|
||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||
|
||||
# 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)
|
||||
plugins=(battery golang zsh-syntax-highlighting)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# Customize to your needs...
|
||||
|
||||
unsetopt AUTO_PUSHD
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/X11/bin:$HOME/bin:$PATH:."
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/X11/bin:$HOME/bin:."
|
||||
|
||||
#bindkey -e
|
||||
function follow() {
|
||||
@@ -107,6 +110,16 @@ function follow() {
|
||||
fi
|
||||
}
|
||||
|
||||
# MPU -- Combination of mkdir -p and pushd
|
||||
function mpu() {
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Usage: `basename $0` <dir> -- Makes dir (and any ancestor directories) if necessary, and then pushes to it"
|
||||
else
|
||||
mkdir -p $1
|
||||
pushd $1
|
||||
fi
|
||||
}
|
||||
|
||||
# Source per-instance customizations if they exist
|
||||
if [ -e $HOME/.zcustom/zshrc ]; then
|
||||
source $HOME/.zcustom/zshrc
|
||||
@@ -115,3 +128,17 @@ fi
|
||||
# Remove duplicate entries in the PATH
|
||||
typeset -U path
|
||||
|
||||
if [ -e $HOME/.asdf/asdf.sh ]; then
|
||||
source $HOME/.asdf/asdf.sh
|
||||
fi
|
||||
|
||||
|
||||
# >>> juliaup initialize >>>
|
||||
|
||||
# !! Contents within this block are managed by juliaup !!
|
||||
|
||||
path=('${HOME}/.juliaup/bin' $path)
|
||||
export PATH
|
||||
|
||||
# <<< juliaup initialize <<<
|
||||
|
||||
|
||||
Reference in New Issue
Block a user