2018-04-29 23:13:10 +02:00
|
|
|
export ZSH=$HOME/.oh-my-zsh
|
2017-12-19 18:50:19 +01:00
|
|
|
|
|
|
|
plugins=(
|
2018-01-05 02:33:01 +01:00
|
|
|
git
|
|
|
|
history
|
|
|
|
sudo
|
|
|
|
wd
|
|
|
|
web-search
|
2017-12-19 18:50:19 +01:00
|
|
|
)
|
|
|
|
|
2018-02-08 14:55:54 +01:00
|
|
|
ZSH_THEME="powerlevel9k/powerlevel9k"
|
|
|
|
HIST_STAMPS="yyyy.mm.dd"
|
2017-12-19 18:50:19 +01:00
|
|
|
|
2017-12-24 20:34:38 +01:00
|
|
|
#POWERLEVEL
|
|
|
|
POWERLEVEL9K_MODE='awesome-fontconfig'
|
|
|
|
|
|
|
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs)
|
|
|
|
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time)
|
2017-12-19 18:50:19 +01:00
|
|
|
|
2017-12-24 20:34:38 +01:00
|
|
|
POWERLEVEL9K_STATUS_OK_BACKGROUND="blue"
|
|
|
|
POWERLEVEL9K_STATUS_OK_FOREGROUND="orange"
|
|
|
|
POWERLEVEL9K_STATUS_ERROR_BACKGROUND="blue"
|
|
|
|
POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red"
|
2017-12-20 00:25:37 +01:00
|
|
|
|
2017-12-24 20:34:38 +01:00
|
|
|
POWERLEVEL9K_TIME_BACKGROUND="black"
|
|
|
|
POWERLEVEL9K_TIME_FOREGROUND="color7"
|
2018-03-08 01:13:52 +01:00
|
|
|
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S}"
|
2017-12-24 20:34:38 +01:00
|
|
|
|
2018-02-08 14:55:54 +01:00
|
|
|
# Alias
|
2017-12-19 18:50:19 +01:00
|
|
|
alias df="df -h"
|
|
|
|
alias mkvirtenv="python -m virtualenv --system-site-packages"
|
2018-01-08 03:42:57 +01:00
|
|
|
alias e="emacsclient -t"
|
2018-04-29 23:13:10 +02:00
|
|
|
alias ek="pkill emacs"
|
2018-04-05 09:46:48 +02:00
|
|
|
alias ed="emacs --daemon"
|
2018-01-05 02:33:01 +01:00
|
|
|
alias nyan="nyancat"
|
2017-12-19 18:50:19 +01:00
|
|
|
alias rm="rm -i"
|
2018-02-08 14:55:54 +01:00
|
|
|
alias -s tex=e
|
|
|
|
alias -s cpp=e
|
2018-04-29 23:13:10 +02:00
|
|
|
alias -s org=e
|
2018-01-22 16:34:03 +01:00
|
|
|
alias diff="diff -s"
|
2018-04-29 23:13:10 +02:00
|
|
|
alias budget="e $HOME/Nextcloud/orgs/Budget/MyBudget.ledger"
|
2018-03-15 11:32:26 +01:00
|
|
|
alias q="exit"
|
2018-04-29 23:13:10 +02:00
|
|
|
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
|
|
|
|
alias steam='steam -silent %U'
|
2017-12-24 20:34:38 +01:00
|
|
|
source $ZSH/oh-my-zsh.sh
|
2018-02-08 14:55:54 +01:00
|
|
|
|
|
|
|
# Variables
|
|
|
|
export TERM="xterm-256color" # in case you are using urxvt, to bypass an error during sshing
|
2018-01-04 16:56:03 +01:00
|
|
|
export GPG_TTY=$(tty)
|
2018-02-08 14:55:54 +01:00
|
|
|
export LC_ALL=en_GB.UTF-8
|
2018-04-29 23:13:10 +02:00
|
|
|
PATH=$PATH:$HOME/.local/bin:/usr/lib/jvm/java-10-openjdk/bin
|
|
|
|
export EDITOR='emacsclient -t'
|
|
|
|
export DEFAULT_EDITOR='emacsclient -t'
|
|
|
|
export VISUAL='emacsclient -ct'
|
|
|
|
export VISUAL_EDITOR='emacsclient -ct'
|
|
|
|
export STEAM_FRAME_FORCE_CLOSE=1
|