Compare commits

...

10 Commits

Author SHA1 Message Date
008b531759 Move juliaup to local config 2026-04-21 07:03:17 -06:00
5dbd658fef Vey 2024-09-09 08:38:00 -06:00
5ad6ca593a Oy 2024-09-09 08:36:14 -06:00
70bc044a10 Added asdf plugin for completions 2024-09-09 08:33:02 -06:00
4c245cb47c source asdf.sh 2024-08-27 19:44:20 -06:00
f05a9928e4 Add asdf plugin 2024-08-27 19:39:16 -06:00
93f4a945c2 Set complete PATH explicitly; add 'mpu' function combining mkdir -p and pushd 2022-10-23 15:04:29 -06:00
fc5ff20836 Make plugins OS-specific 2022-02-16 15:58:53 -06:00
3e84dc3c0b Updates 2022-02-16 15:28:27 -06:00
54ad5cea5a Added fuseblk 2022-02-09 14:02:34 -06:00

29
.zshrc
View File

@@ -4,22 +4,30 @@ export ZSH_DISABLE_COMPFIX=true
# Update config once every 24 hours # Update config once every 24 hours
cd $HOME/.zcustom 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 case "`uname`" in
Linux) Linux)
STATARGS="-c %Z" STATARGS="-c %Z"
alias df='df -x squashfs -x tmpfs -x devtmpfs' alias df='df -x squashfs -x tmpfs -x devtmpfs'
alias mount='mount -t ext3,ext4,cifs,nfs,nfs4,zfs,vfat,btrfs' alias mount='mount -t ext3,ext4,cifs,nfs,nfs4,zfs,vfat,btrfs'
alias open=xdg-open alias open=xdg-open
plugins=(asdf battery golang zsh-syntax-highlighting)
;; ;;
Darwin) Darwin)
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
STATARGS="-f %m" STATARGS="-f %m"
plugins=(asdf battery brew golang lein macos zsh-syntax-highlighting)
;; ;;
OpenBSD) OpenBSD)
STATARGS="-f %m" STATARGS="-f %m"
plugins=(battery zsh-syntax-highlighting)
;; ;;
FreeBSD) FreeBSD)
STATARGS="-f %m" STATARGS="-f %m"
plugins=(battery zsh-syntax-highlighting)
;; ;;
*) *)
echo "Error! Unknown system `uname`" echo "Error! Unknown system `uname`"
@@ -86,17 +94,12 @@ DISABLE_UPDATE_PROMPT="true"
# much faster. # much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true" # 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 source $ZSH/oh-my-zsh.sh
# Customize to your needs... # Customize to your needs...
unsetopt AUTO_PUSHD 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 #bindkey -e
function follow() { function follow() {
@@ -107,6 +110,16 @@ function follow() {
fi 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 # Source per-instance customizations if they exist
if [ -e $HOME/.zcustom/zshrc ]; then if [ -e $HOME/.zcustom/zshrc ]; then
source $HOME/.zcustom/zshrc source $HOME/.zcustom/zshrc
@@ -115,3 +128,7 @@ fi
# Remove duplicate entries in the PATH # Remove duplicate entries in the PATH
typeset -U path typeset -U path
if [ -e $HOME/.asdf/asdf.sh ]; then
source $HOME/.asdf/asdf.sh
fi