~gpanders/dotfiles

ref: 3dda0c8f7e604b248f6619aa6facbb05c7de9833 dotfiles/.profile -rw-r--r-- 555 bytes
3dda0c8fGregory Anders vim: preserve current syntax in sh buffers 3 months ago
                                                                                
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
#!/bin/sh

export EDITOR=vi
export VISUAL=vi
export PAGER=less
export LESS="-g -M -R -W -X -z-4"

if [ -d "$HOME/.local/bin" ] ; then
    export PATH="$HOME/.local/bin:$PATH"
fi

if [ -d "$HOME/bin" ]; then
    export PATH="$HOME/bin:$PATH"
fi

if [ -d "${XDG_CONFIG_HOME:-$HOME/.config}"/profile.d ]; then
    for i in "${XDG_CONFIG_HOME:-$HOME/.config}"/profile.d/*.sh; do
        [ -r "$i" ] && . "$i"
    done
fi

if [ -n "$BASH_VERSION" ] && [ -n "$PS1" ]; then
    # Source .bashrc for interactive bash shells
    [ -r ~/.bashrc ] && . ~/.bashrc
fi