1
0
Files
dotfiles/.profile

42 lines
1.1 KiB
Bash

# ~/.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
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
if [[ -x "$(command -v hx)" ]] ; then
export EDITOR="hx"
elif [[ -x "$(command -v vim)" ]] ; then
export EDITOR="vim"
fi
# set GOPATH and add bin directory to PATH variable
export GOPATH="$HOME/.local/lib/go"
if [ -d "$GOPATH/bin" ] ; then
PATH="$GOPATH/bin:$PATH"
fi
# set default options for less
# i: case-insensitive; R: use ANSI-Escape sequences
export LESS=iR
# set exa colors
export EXA_COLORS="da=32"
# use all cores with Makefile's
export MAKEFLAGS="-j$(nproc --all)"
# Postgres env
export PGHOST=localhost
export PGUSER=knmav