blob: c2d0b76b8ad3bac2189d2623b96762726f1b75f0 (
plain)
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
|
###########################################################
# ~/.profile
#
###########################################################
###### locale ######
export LANG="en_US.utf8"
export LC_CTYPE="zh_CN.utf8"
export LC_COLLATE="C"
###### input method ######
export XMODIFIERS="@im=fcitx"
export INPUT_METHOD="fcitx"
export GTK_IM_MODULE="fcitx"
export GTK3_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"
export QT4_IM_MODULE="fcitx"
###### PATH ######
# admin
if `groups | grep -qE '\b(wheel|adm|sudo)\b'`; then
export PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
fi
# $HOME/bin
if [ -d "$HOME/bin" ]; then
export PATH="$HOME/bin:$PATH"
fi
# npm
if [ -d "$HOME/npm" ]; then
export PATH="$PATH:$HOME/npm"
fi
# TeXlive
if [ -d "/usr/local/texlive/bin/x86_64-linux" ]; then
export PATH="$PATH:/usr/local/texlive/bin/x86_64-linux"
fi
###### gpg agent ######
gpgenv="$HOME/.gnupg/gpg-agent.env"
if [ -e "${gpgenv}" ] && kill -0 $(grep GPG_AGENT_INFO "${gpgenv}" \
| cut -d: -f 2) 2>/dev/null; then
eval "$(cat "${gpgenv}")"
else
eval "$(gpg-agent --daemon --enable-ssh-support --write-env-file "${gpgenv}")"
fi
export GPG_AGENT_INFO
export SSH_AUTH_SOCK # enable gpg-agent for ssh
# This file is sourced by bash for login shells. The following line
# runs your .bashrc and is recommended by the bash info pages.
[ -f ~/.bashrc ] && . ~/.bashrc
# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=sh: #
|