-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
82 lines (65 loc) · 2.14 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Paleta
#(paleta -r &)
#{ read -r < ~/.cache/paleta/colors; printf %b "$REPLY"; } & disown
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Grc
[[ -s "$HOME/.zsh/grc.zsh" ]] && source $HOME/.zsh/grc.zsh
# ZSH configuration.
# (1) ZSH Themes
# (2) Case-sensitive completion
# (3) Disable auto-setting terminal title,
# (4) Disable marking untracked files under VCS as dirty.
# (5) Plugins
ZSH_THEME="frisk"
CASE_SENSITIVE="true"
DISABLE_AUTO_TITLE="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(extract git sudo vim-interaction zsh-autosuggestions zsh-syntax-highlighting zsh-history-substring-search zsh-completions archlinux)
# Load oh-my-zsh.sh
source $ZSH/oh-my-zsh.sh
# Custom command aliases and functions.
source ~/.zsh/aliases
source ~/.zsh/functions
# Dircolors
test -r ~/.dircolors && eval $(dircolors ~/.dircolors)
# Add extra $PATH.
export PATH="$PATH:$HOME/bin:$HOME/.local/bin:/usr/bin:/usr/local/bin:/sbin:/bin"
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.emacs.d/bin:$PATH"
# Wine
export PATH=$PATH:/opt/wine-stable/bin
# Go
export GOROOT=/usr/lib/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
# User configuration.
USER_LANGUAGE="en_US.UTF-8"
export LC_ALL=${USER_LANGUAGE}
export LANG=${USER_LANGUAGE}
export LANGUAGE=${USER_LANGUAGE}
export BROWSER="firefox"
export EDITOR="nvim"
# Fix incorrect backspace behavior on urxvt+zsh+ssh.
# However, this will cause zsh-autosuggestion to work buggy.
#export TERM=xterm-256color
# fcitx for wps fix.
export XIM=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
# Prevent Wine from adding menu entries and desktop links.
export WINEDLLOVERRIDES="winemenubuilder.exe=d"
# timestamp
timestamp() {
date +"%Y-%m-%d %H:%M:%S"
}
# build options
export CHOST="x86_64-pc-linux-gnu"
export CFLAGS="-march=core-avx2 -mavx2 -O2 -pipe"
export CXXFLAGS="${CFLAGS}"
# Findomain access token
export findomain_spyse_token="gGs5YwExUq1N9K5JlsDZd_TB4xQtbgPu"
export findomain_virustotal_token="46602437bd2874b0b735daa10d59947e6470c72a9ffa8fe230a84e4172392483"
# Print welcome message and todo list.
clear; lastlogin; motd