generated from nberlette/dotfiles
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.path
executable file
·74 lines (58 loc) · 2.85 KB
/
.path
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
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
[ -r ~/.bashrc.d/core.sh ] && {
# shellcheck source=/dev/null
. ~/.bashrc.d/core.sh 2>/dev/null
}
export PATH="${PATH:-"$HOME/.bin:$HOME/.local/bin:$HOME/bin:/usr/local/bin:/usr/bin:/bin:/sbin:/usr/sbin:/usr/local/sbin"}"
HOMEBREW_PREFIX="${HOMEBREW_PREFIX:-"$(brew --prefix 2>/dev/null || echo -n /home/linuxbrew/.linuxbrew)"}"
export HOMEBREW_PREFIX
# go
export GOPATH="$HOME/.go"
export PATH="/usr/local/go/bin:$GOPATH/bin:$PATH"
export CDPATH="$CDPATH:$GOPATH/src/github.com:$GOPATH/src/golang.org:$GOPATH/src"
# rust
export PATH="$HOME/.cargo/bin:$PATH"
# c/c++/gcc/bcc
export PATH="/usr/share/bcc/tools:$PATH"
export CXXFLAGS="$CXXFLAGS -stdlib=libc++ -Wno-deprecated-declarations -Wno-deprecated -framework CoreFoundation"
# llvm
export PATH="${HOMEBREW_PREFIX-}/opt/llvm/bin:$PATH"
# mysql
export PATH="${HOMEBREW_PREFIX-}/opt/mysql-client/bin:$PATH"
export MYSQL_INCLUDE_DIR="${HOMEBREW_PREFIX-}/opt/mysql-client/include/mysql"
# boost
export BOOST_INCLUDE_DIR="${HOMEBREW_PREFIX-}/include"
# bash completions
# src /etc/bash_completion /etc/bash_completion.d
# github cli completions
eval "$(gh completion -s bash 2>/dev/null)"
# supabase cli completions
eval "$(supabase completion bash 2>/dev/null)"
# linux-only completions and path stuff
if [ -d /home/linuxbrew/.linuxbrew ]; then
export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/bin:/usr/local/sbin${PATH+:$PATH}"
export MANPATH="/home/linuxbrew/.linuxbrew/share/man:/usr/local/share/man:/usr/share/man:$HOME/.local/share/man${MANPATH+:$MANPATH}:"
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:/usr/local/share/info:/usr/share/info:$HOME/.local/share/info:${INFOPATH:-}"
fi
# OpenSSL, coreutils, findutils, make, etc.
export PATH="${HOMEBREW_PREFIX-}/opt/openssl/bin:$PATH"
export LDFLAGS="$LDFLAGS -L${HOMEBREW_PREFIX-}/opt/openssl/lib"
export CPPFLAGS="$CPPFLAGS -I${HOMEBREW_PREFIX-}/opt/openssl/include"
export OPENSSL_ROOT_DIR="${HOMEBREW_PREFIX-}/opt/openssl"
export PKG_CONFIG_PATH="${HOMEBREW_PREFIX-}/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"
export MANPATH="/usr/local/opt/make/libexec/gnuman:$MANPATH"
export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"
export MANPATH="/usr/local/opt/findutils/libexec/gnuman:$MANPATH"
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"
# coreutils
export PATH="${HOMEBREW_PREFIX-}/opt/coreutils/libexec/gnubin:$PATH"
# ~/.bin, ~/.local/bin, ~/.dotfiles/.bin
export PATH="$HOME/.bin:$HOME/.local/bin:$HOME/dotfiles/.bin:$PATH"
if type -t dedupe_path &>/dev/null; then
export PATH="$(dedupe_path)"
fi