mirror of
https://github.com/vbrandl/dotfiles
synced 2024-11-26 17:35:12 +01:00
88 lines
2.7 KiB
Bash
88 lines
2.7 KiB
Bash
source ~/antigen/antigen.zsh
|
|
|
|
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
|
|
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
|
|
|
|
antigen apply
|
|
|
|
export PATH=~/.rakudobrew/bin:~/.gem/ruby/2.3.0/bin:$PATH
|
|
eval "$(/home/me/.rakudobrew/bin/rakudobrew init -)"
|
|
|
|
# antigen theme https://github.com/halfo/lambda-mod-zsh-theme lambda-mod
|
|
antigen theme https://github.com/agnoster/agnoster-zsh-theme.git agnoster
|
|
|
|
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
|
|
|
|
# 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
|
|
|
|
# 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)
|
|
export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode
|
|
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
|
|
|
|
unsetopt autopushd
|
|
|
|
# vim: set filetype=zsh ts=4 sw=4 tw=0 et :
|