-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_profile
50 lines (42 loc) · 1.4 KB
/
dot_profile
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
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME"/bin ] ; then
PATH="$HOME"/bin:"$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME"/.local/bin" ] ; then
PATH="$HOME"/.local/bin:"$PATH"
fi
# xdg env
export XDG_CONFIG_HOME="$HOME"/.config
export XDG_CACHE_HOME="$HOME"/.cache
export XDG_DATA_HOME="$HOME"/.local/share
# CARGO
export CARGO_HOME="$XDG_DATA_HOME"/cargo
if [ -d "$CARGO_HOME"/bin ] ; then
PATH="$CARGO_HOME"/bin:"$PATH"
fi
# mocword data file
if [ -f "$XDG_DATA_HOME"/mocword/mocword.sqlite ]; then
export MOCWORD_DATA="$XDG_DATA_HOME"/mocword/mocword.sqlite
fi
# for x2go
if type -P x2goagent 2> /dev/null ; then
if [ -z "$XDG_DATA_DIRS" ] ; then
export XDG_DATA_DIRS=/usr/share/mate:/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:"$XDG_DATA_HOME"
fi
export GSETTINGS_SCHEMA_DIR=$XDG_DATA_DIRS
fi
# tty for GPG
if [ "$SSH_TTY" == "" ]; then
if [ "$GPG_TTY" == "" ]; then
export GPG_TTY=$(tty)
fi
fi