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
|
2017-12-19 18:50:19 +01:00
|
|
|
)
|
|
|
|
|
2018-11-20 15:13:51 +01:00
|
|
|
#ZSH_THEME="/usr/share/zsh-theme-powerlevel9k/powerlevel9k"
|
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)
|
2018-10-05 21:21:11 +02:00
|
|
|
POWERLEVEL9K_COLOR_SCHEME='light'
|
2017-12-19 18:50:19 +01:00
|
|
|
|
2018-11-20 15:13:51 +01:00
|
|
|
#POWERLEVEL9K_STATUS_OK_BACKGROUND="blue"
|
|
|
|
#POWERLEVEL9K_STATUS_OK_FOREGROUND="orange"
|
|
|
|
#POWERLEVEL9K_STATUS_ERROR_BACKGROUND="blue"
|
|
|
|
#POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red"
|
|
|
|
#
|
|
|
|
#POWERLEVEL9K_TIME_BACKGROUND="white"
|
|
|
|
#POWERLEVEL9K_TIME_FOREGROUND="black"
|
2018-03-08 01:13:52 +01:00
|
|
|
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S}"
|
2017-12-24 20:34:38 +01:00
|
|
|
|
2018-06-25 05:23:12 +02:00
|
|
|
POWERLEVEL9k_SHORTEN_STRATEGY="trunctuate_middle"
|
|
|
|
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
|
2018-08-29 21:22:24 +02:00
|
|
|
|
2018-02-08 14:55:54 +01:00
|
|
|
# Alias
|
2018-09-12 22:42:41 +02:00
|
|
|
alias -s cpp=vim
|
|
|
|
alias -s org=vim
|
|
|
|
alias -s tex=vim
|
|
|
|
alias budget="emacs -nw $HOME/Nextcloud/orgs/Budget/MyBudget.ledger"
|
2017-12-19 18:50:19 +01:00
|
|
|
alias df="df -h"
|
2018-09-12 22:42:41 +02:00
|
|
|
alias diff="diff -s"
|
2018-01-08 03:42:57 +01:00
|
|
|
alias e="emacsclient -t"
|
2018-06-24 13:25:59 +02:00
|
|
|
alias ej="emacs --daemon"
|
2018-09-12 22:42:41 +02:00
|
|
|
alias ek="pkill emacs"
|
|
|
|
alias erc='emacs -nw ~/.emacs.d/config.org'
|
|
|
|
alias matrix="cmatrix"
|
|
|
|
alias mkvirtenv="python -m virtualenv --system-site-packages"
|
|
|
|
alias mp3='youtube-dl --embed-thumbnail -x --audio-format mp3 -o "./%(title)s.%(ext)s"'
|
2018-01-05 02:33:01 +01:00
|
|
|
alias nyan="nyancat"
|
2018-09-12 22:42:41 +02:00
|
|
|
alias pastebin='vim ~/Nextcloud/pastebin.txt'
|
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"'
|
2018-09-12 22:42:41 +02:00
|
|
|
alias rm="rm -I"
|
2018-08-29 21:22:24 +02:00
|
|
|
alias steam='steam'
|
|
|
|
alias vpn_eu='sudo openvpn --config Downloads/AirVPN_Europe_UDP-443.ovpn'
|
|
|
|
alias vpn_us='sudo openvpn --config Downloads/AirVPN_America_UDP-443.ovpn'
|
2018-09-12 22:42:41 +02:00
|
|
|
alias vrc='vim ~/.vimrc'
|
|
|
|
alias vudget="vim $HOME/Nextcloud/orgs/Budget/MyBudget.ledger"
|
|
|
|
alias watch='watch --color'
|
|
|
|
alias zrc='vim ~/.zshrc'
|
2018-10-03 18:39:19 +02:00
|
|
|
alias wallpaper='~/.scripts/colorscheme.sh'
|
2018-09-12 22:42:41 +02:00
|
|
|
|
|
|
|
|
2017-12-24 20:34:38 +01:00
|
|
|
source $ZSH/oh-my-zsh.sh
|
2018-02-08 14:55:54 +01:00
|
|
|
|
|
|
|
# Variables
|
2018-04-29 23:13:10 +02:00
|
|
|
PATH=$PATH:$HOME/.local/bin:/usr/lib/jvm/java-10-openjdk/bin
|
2018-06-24 13:25:59 +02:00
|
|
|
export DEFAULT_EDITOR=$EDITOR
|
2018-09-12 22:42:41 +02:00
|
|
|
export EDITOR='vim'
|
|
|
|
export GOPATH="$HOME/workspace/go/"
|
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
export HIGHLIGHT_DATADIR="~/.config/highlight/"
|
2018-10-03 18:39:19 +02:00
|
|
|
export LC_ALL=en_US.UTF-8
|
2018-09-12 22:42:41 +02:00
|
|
|
export STEAM_FRAME_FORCE_CLOSE=1
|
|
|
|
export TERM="xterm-256color" # in case you are using urxvt, to bypass an error during sshing
|
2018-06-24 13:25:59 +02:00
|
|
|
export VISUAL=$EDITOR
|
|
|
|
export VISUAL_EDITOR=$EDITOR
|
2018-10-05 21:21:11 +02:00
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=true
|
|
|
|
export PATH="$PATH:/home/tuan/.dotnet/tools"
|
2018-11-20 15:13:51 +01:00
|
|
|
export ASPNETCORE_Environment=Development
|
2018-10-05 21:21:11 +02:00
|
|
|
|
2018-08-29 21:22:24 +02:00
|
|
|
|
|
|
|
# Functions
|
2018-11-20 15:13:51 +01:00
|
|
|
source /usr/share/zsh-theme-powerlevel9k/powerlevel9k.zsh-theme
|