summaryrefslogtreecommitdiff
path: root/profile
blob: 3db343db40d016f60867186f052d6cb07dac894e (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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# -*- mode: sh; -*-
# shellcheck disable=SC1090,SC1091 shell=sh
# ~/.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

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

# Add GO path
export GOPATH="$HOME/src/go"
if [ -d "$GOPATH/bin" ]; then
    PATH=$GOPATH/bin:$PATH
fi

# Add NPM path
export NPM_PACKAGES="$HOME/.npm-packages"
if [ -d "$NPM_PACKAGES" ]; then
    PATH="$NPM_PACKAGES/bin:${PATH}"
    if command -v manpath >/dev/null 2>&1; then
        unset MANPATH
        MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
        export MANPATH
    fi
    export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
fi

# Add RUST path
if [ -d "$HOME/.cargo/bin" ] ; then
    PATH=$HOME/.cargo/bin:"${PATH}"
    if [ -x "$HOME/.cargo/bin/rustc" ]; then
	RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/src
        export RUST_SRC_PATH
    fi
fi

# Add MXE path
if [ -d /usr/lib/mxe/usr/bin ]; then
    PATH="$PATH:/usr/lib/mxe/usr/bin"
fi

# Add fdroidserver path
if [ -d ~/src/fdroid/fdroidserver ] ; then
    PATH="${PATH}":~/src/fdroid/fdroidserver
fi

# Add guix profile
if [ -f "$HOME/.guix-profile/etc/profile" ] ; then
    export GUIX_PROFILE="$HOME/.guix-profile"
    . "$GUIX_PROFILE/etc/profile"
fi
if [ -d "$HOME/.guix-profile/share" ]; then
    export XDG_DATA_DIRS="$HOME/.guix-profile/share:$XDG_DATA_DIRS"
fi
if [ -d "$HOME/.guix-profile/lib/locale" ]; then
    export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
fi
if [ -f "$HOME/.config/guix/current/etc/profile" ]; then
    export GUIX_PROFILE="$HOME/.config/guix/current"
    . "$GUIX_PROFILE/etc/profile"
fi

# Add local paths
if [ -d "$HOME/.local/bin" ] ; then
    PATH=$HOME/.local/bin:"${PATH}"
fi
if [ -d "$HOME/bin" ] ; then
    PATH=$HOME/bin:"${PATH}"
fi
export PATH

export TEXMFHOME=$HOME/.texmf

export FULLNAME="JoaquĆ­n Aguirrezabalaga"
export EMAIL="kinote@kinote.org"
export DEBFULLNAME=$FULLNAME
export DEBEMAIL=$EMAIL
#export ANDROID_HOME=~/android/sdk

export LANG=es_ES.UTF-8

ssh-reagent >/dev/null 2>&1

if [ -f "$HOME/.profile_local" ]; then
    . "$HOME/.profile_local"
fi