1
0
mirror of https://github.com/vbrandl/dotfiles synced 2024-11-26 17:35:12 +01:00
dotfiles/shells/zsh/zshrc

109 lines
3.4 KiB
Bash
Raw Normal View History

2017-02-11 14:18:48 +01:00
source ~/antigen/antigen.zsh
2017-02-11 11:18:16 +01:00
antigen bundle robbyrussell/oh-my-zsh lib/
antigen use oh-my-zsh
antigen bundle jump
antigen bundle zsh-users/zsh-syntax-highlighting
# autosuggestions based on the history
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle git
2017-05-12 14:20:02 +02:00
antigen bundle gitignore
2017-02-11 11:18:16 +01:00
antigen bundle tmux
antigen bundle tmuxinator
# cargo autocomplete
antigen bundle cargo
# magnet link to torrent file with magnet_to_torrent
antigen bundle torrent
antigen bundle rupa/z
# maven
antigen bundle mvn
antigen bundle rand-quote
# ssh-agent
antigen bundle ssh-agent
antigen bundle https://github.com/bobthecow/git-flow-completion
2018-08-13 11:50:24 +02:00
antigen theme https://github.com/halfo/lambda-mod-zsh-theme lambda-mod
# antigen theme https://github.com/agnoster/agnoster-zsh-theme.git agnoster
2017-02-11 11:18:16 +01:00
2018-08-13 11:50:24 +02:00
antigen apply
2017-02-11 11:18:16 +01:00
2018-11-22 18:26:01 +01:00
export PATH=~/bin:~/.gem/ruby/2.5.0/bin:$PATH
2017-02-11 11:18:16 +01:00
source $HOME/.cargo/env
# fix font rendering in Java
export JAVA_OPTS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true"
export EDITOR=/usr/bin/vim
# map vi to vim
alias vi=$EDITOR
2017-05-12 14:20:02 +02:00
2017-02-11 11:18:16 +01:00
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# print execution time if > 10 seconds
export REPORTTIME=10
# better shell colors
BASE16_SHELL="$HOME/.config/base16-shell/scripts/base16-default-dark.sh"
[[ -s $BASE16_SHELL ]] && source $BASE16_SHELL
# alias to upload a file to sprunge.us
alias sprunge="curl -F 'sprunge=<-' http://sprunge.us"
# sudo with aliases
# If the last character of the alias value is a space or tab character, then the next command word following the alias is also checked for alias expansion.
alias sudo='sudo '
# get tmux to work with true color
# alias tmux='TERM=xterm-256color tmux'
alias tmux='tmux -2'
alias mux='tmuxinator start'
alias prm=". $HOME/tools/prm/prm.sh"
# multiple tabs in termite
source /etc/profile.d/vte.sh
2018-08-13 11:50:24 +02:00
# load nix
. /home/me/.nix-profile/etc/profile.d/nix.sh
. ~/.drone/drone.vbrandl.net
2017-02-11 14:18:48 +01:00
# copied from http://www.tuxarena.com/2012/04/tutorial-colored-man-pages-how-it-works/
# maybe improve later
export LESS_TERMCAP_mb=$(printf '\e[01;31m') # enter blinking mode - red
export LESS_TERMCAP_md=$(printf '\e[01;35m') # enter double-bright mode - bold, magenta
export LESS_TERMCAP_me=$(printf '\e[0m') # turn off all appearance modes (mb, md, so, us)
2017-05-12 14:20:02 +02:00
export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode
2017-02-11 14:18:48 +01:00
export LESS_TERMCAP_so=$(printf '\e[01;33m') # enter standout mode - yellow
export LESS_TERMCAP_ue=$(printf '\e[0m') # leave underline mode
export LESS_TERMCAP_us=$(printf '\e[04;36m') # enter underline mode - cyan
2017-02-17 15:59:54 +01:00
unsetopt autopushd
2017-05-12 14:20:02 +02:00
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$HOME/.rvm/bin:$PATH"
2018-11-22 18:26:01 +01:00
export PATH="$HOME/.gem/ruby/2.5.0/bin:$PATH"
export PATH="$HOME/.yarn/bin:$PATH"
export PATH="$HOME/.config/composer/vendor/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
2017-05-12 14:20:02 +02:00
# Linuxbrew
# export PATH="/home/me/.linuxbrew/bin:$PATH"
# export MANPATH="/home/me/.linuxbrew/share/man:$MANPATH"
# export INFOPATH="/home/me/.linuxbrew/share/info:$INFOPATH"
fpath=(~/.zsh/completions $fpath)
2017-02-11 11:18:16 +01:00
# vim: set filetype=zsh ts=4 sw=4 tw=0 et :
2018-08-13 11:50:24 +02:00
# added by travis gem
[ -f /home/me/.travis/travis.sh ] && source /home/me/.travis/travis.sh