summaryrefslogtreecommitdiff
path: root/common/.profile
blob: 522c56b3af5a4507e51a7bcc91c5107aa74e1aa4 (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
53
54
55
# if running bash
if [ -n "$BASH_VERSION" ]; then
        # include .bashrc if it exists
        if [ -f "$HOME/.bashrc" ]; then
                . "$HOME/.bashrc"
        fi
fi

# PATH
case ":$PATH:" in
    *":$HOME/.local/bin:"*) ;;
    *) PATH="$HOME/.local/bin:$PATH" ;;
esac

case ":$PATH:" in
    *":$HOME/bin:"*) ;;
    *) PATH="$HOME/bin:$PATH" ;;
esac

case ":$PATH:" in
    *":/sbin:"*) ;;
    *) PATH="$PATH:/sbin" ;;
esac

case ":$PATH:" in
    *:"/usr/sbin":*) ;;
    *) PATH="$PATH:/usr/sbin" ;;
esac

which luarocks 2>&1 >/dev/null \
    && eval `luarocks path`

case ":$PATH:" in
    *:"$HOME/.luarocks/bin":*) ;;
    *) PATH="$PATH:$HOME/.luarocks/bin" ;;
esac

# Aliases
alias la='ls -a'
alias ll='ls -l'
alias lla='ls -al'
alias l='ls'

# Variables
export EMAIL="simonparri@ganzeria.com"
export GOPATH="$HOME/src/go"
export GEM_HOME="$HOME/.gem"
export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --height 20% --layout=reverse"

export MOZ_USE_XINPUT2=1

[ -d ~/.themes/FlatColor ] && export GTK_THEME=FlatColor

# Local profile
[ -f ~/.profile.local ] && . ~/.profile.local