-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
56 lines (46 loc) · 1.2 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
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# 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
# Add dotfiles' bin/ to PATH
if [ -d ~/.dotfiles/bin ]; then
export PATH=$PATH:~/.dotfiles/bin
elif [ -d ~/dotfiles/bin ]; then
export PATH=$PATH:~/dotfiles/bin
fi
# Use gvim as EDITOR for the Julia REPL
export JULIA_EDITOR='gvim --remote-silent'
# Use ninja for CMake
if command -v ninja >/dev/null 2>&1; then
export CMAKE_GENERATOR=Ninja
fi
# Export compile commands for CMake
export CMAKE_EXPORT_COMPILE_COMMANDS=ON
# Use vim/neovim as default EDITOR
if command -v nvim >/dev/null 2>&1; then
export EDITOR='nvim'
else
export EDITOR='vim'
fi
# Less charset
export LESSCHARSET=utf-8
# local overrides
if [ -f "$HOME/.profile.local" ]; then
. "$HOME/.profile.local"
fi
# Use nvim as man pager
if command -v nvim >/dev/null 2>&1; then
export MANPAGER='nvim +Man!'
export MANWIDTH=999
fi