dotfiles/zsh/.zshrc

59 lines
1.3 KiB
Bash
Raw Normal View History

2021-01-31 03:52:53 +01:00
# export path stuff
if [[ $UID -ge 1000 && -d $HOME/.local/bin && -z $(echo $PATH | grep -o $HOME/.local/bin) ]]
then
2021-01-31 03:52:53 +01:00
export PATH="$HOME/.local/bin:${PATH}"
fi
2021-01-31 03:52:53 +01:00
# start x -> starts dwm within .xinitrc
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
startx
fi
2021-01-31 03:52:53 +01:00
# Alias
alias nv="nvim"
alias vim="nvim"
alias sc="maim -s ~/Pictures/$(date +%s).png"
2021-04-08 23:15:13 +02:00
alias ff="firefox-nightly"
2021-01-20 00:42:32 +01:00
# Java/Android
export ANDROID_SDK_ROOT="$HOME:/Android/Sdk"
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
2021-10-18 18:12:51 +02:00
# export trickery
2021-01-31 03:52:53 +01:00
export EDITOR=nvim
export ZSH="/home/n0x/.oh-my-zsh"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
2021-01-31 03:52:53 +01:00
export LIBVIRT_DEFAULT_URI="qemu:///system"
2021-01-31 03:52:53 +01:00
# call pfetch for new terminal
pfetch
2021-01-31 03:52:53 +01:00
# Theming and plugins
ZSH_THEME="powerlevel10k/powerlevel10k"
HIST_STAMPS="yyyy-mm-dd"
plugins=(
tmux
git
zsh-autosuggestions
zsh-syntax-highlighting
)
2021-10-18 18:12:51 +02:00
#ZSH_TMUX_AUTOSTART=true
2021-01-31 03:52:53 +01:00
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
source $ZSH/oh-my-zsh.sh
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
2021-01-20 00:42:32 +01:00
[ -f ~/.config/lf/icons ] && source ~/.config/lf/icons