aboutsummaryrefslogtreecommitdiff
path: root/mac/zshrc
diff options
context:
space:
mode:
authorJakob Stendahl <jakobste@uio.no>2020-08-27 09:16:27 +0200
committerJakob Stendahl <jakobste@uio.no>2020-08-27 09:16:27 +0200
commit67c181b213519205fe0e7bac4646349652835dbb (patch)
treee6986d8761e0f6fbfce7e92916679c1d284bf61f /mac/zshrc
parent80985a3f817074537bb5d997fc4923294a0c3993 (diff)
downloaddotfiles-67c181b213519205fe0e7bac4646349652835dbb.tar.gz
dotfiles-67c181b213519205fe0e7bac4646349652835dbb.zip
Update to p10k, and do some small updates
Diffstat (limited to 'mac/zshrc')
-rw-r--r--mac/zshrc12
1 files changed, 7 insertions, 5 deletions
diff --git a/mac/zshrc b/mac/zshrc
index 63aa4c2..652449f 100644
--- a/mac/zshrc
+++ b/mac/zshrc
@@ -8,25 +8,31 @@ fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
+# Check if env setup file exists
if [ ! -f /usr/local/etc/zsh_env_setup ]; then
echo "export ZSH=$HOME/.oh-my-zsh" > /usr/local/etc/zsh_env_setup
echo "DEFAULT_USER=$USER" >> /usr/local/etc/zsh_env_setup
fi
+# Source env setup file
source /usr/local/etc/zsh_env_setup
+# Source powerlevel10k theme
source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme
COMPLETION_WAITING_DOTS="true"
+# Setup plugins
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
+# Setup oh-my-zsh
source $ZSH/oh-my-zsh.sh
+# Modify locale and path
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
path+=("/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands")
@@ -35,13 +41,12 @@ export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbi
path+=("$(readlink /Users/$DEFAULT_USER/bin)")
export path
-alias lamp='/Users/jakobstendahl/.lamp.sh'
+# Add aliases
alias krak='/Applications/GitKraken.app/Contents/MacOS/GitKraken -p "$(PWD)" &>> /dev/null &'
alias lsp="ps -ax | grep"
alias lsa="ls -la"
alias lsg="ls | grep"
alias lsag="ls -la | grep"
-
alias ls="tput setaf 3 && echo \"'lsa' for 'ls -la', \n'lsg' for 'ls | grep',\n'lsag' for 'ls -la | grep',\n'lsp' for 'ps -ax |grep'\" && tput sgr0 && ls"
# man pages in colors
@@ -55,9 +60,6 @@ man() {
command man "$@"
}
-#clear
-
-# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!