skel/.profile

56 lines
1.4 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
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
fi
# set PATH so it includes user's private bin if it exists
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
# set PATH so it includes user's private bin if it exists
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
#
# User specific exports
#
## defaults
export EDITOR="nano"
export PAGER="most"
# gpg
export GPG_TTY=$(tty)
#export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
#gpg-connect-agent updatestartuptty /bye > /dev/null
# envs
export PATH=$PATH:/envs/bin
# bbj
export BBJ_USER=$USER
# latest GO
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
# hugo cachedir
export HUGO_CACHEDIR="/tmp/hugo_cache_$USER"
# byobu
if [[ ! $TERM =~ screen ]] || [[ ! $TMUX =~ tmux ]]; then
_byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true
# when we use `byobu-disable` we have an emtpy if..
true
fi