dotfiles/zsh/.zshrc

62 lines
1.4 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}"
export PATH="$HOME/.local/bin/dwmscript:${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-01-31 03:52:53 +01:00
# exporty
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
)
#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
2021-01-31 03:52:53 +01:00
#[[ ! -f ~/dotfiles/zsh/.p10k.zsh ]] || source ~/dotfiles/zsh/.p10k.zsh