forked from vivien/dotfiles
/
profile
68 lines (52 loc) · 1.51 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#! /usr/bin/env 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
echo "sourcing sh profile"
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "/usr/local/sbin" ]; then
PATH="/usr/local/sbin:$PATH"
fi
if [ -d "/usr/local/share/npm/bin" ]; then
PATH="/usr/local/share/npm/bin:$PATH"
fi
if [ -d "$HOME/go/bin" ]; then
PATH="$HOME/go/bin:$PATH"
fi
if [ -d "$HOME/narwhal/bin" ]; then
PATH="$HOME/narwhal/bin:$PATH"
fi
if [ -d "/usr/local/share/npm/bin" ]; then
PATH="/usr/local/share/npm/bin:$PATH"
fi
if [ -d "/usr/share/maven/bin" ]; then
PATH="/usr/share/maven/bin:$PATH"
fi
if [ -d "$HOME/bin" ]; then
PATH="$PATH:$HOME/bin"
fi
if [ -d "$HOME/.cabal/bin" ]; then
PATH="$PATH:$HOME/.cabal/bin"
fi
if [ -d "/usr/local/opt/go/libexec/bin" ]; then
PATH="$PATH:/usr/local/opt/go/libexec/bin"
fi
if [ -d "/Applications/Postgres.app/Contents/Versions/10/bin" ]; then
PATH=$PATH:/Applications/Postgres.app/Contents/Versions/10/bin
fi
export PATH
set -o vi