mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Non-conf dotfiles, v1.
This commit is contained in:
42
profile
Normal file
42
profile
Normal file
@@ -0,0 +1,42 @@
|
||||
# Sourced by zshrc as well as bash.
|
||||
|
||||
umask 022
|
||||
|
||||
# if running bash
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
# include .bashrc if it exists
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
fi
|
||||
|
||||
PATH="$HOME/bin:/sbin:/usr/sbin:$PATH"
|
||||
VISUAL=vim
|
||||
EDITOR=vim
|
||||
|
||||
# Setup GPG Agent
|
||||
GPG_AGENT_INFO_PATH=$HOME/.gnupg/gpg-agent-info-`hostname`
|
||||
if test -f $GPG_AGENT_INFO_PATH && kill -0 `cut -d: -f 2 $GPG_AGENT_INFO_PATH` 2>/dev/null ; then
|
||||
. $GPG_AGENT_INFO_PATH
|
||||
export GPG_AGENT_INFO SSH_AUTH_SOCK SSH_AGENT_PID
|
||||
else
|
||||
gpg-agent -q || eval `gpg-agent --daemon --enable-ssh-support --write-env-file $GPG_AGENT_INFO_PATH` 2>/dev/null
|
||||
fi
|
||||
unset GPG_AGENT_INFO_PATH
|
||||
export GPG_TTY=`tty`
|
||||
|
||||
# Debian Packaging
|
||||
export DEBEMAIL=david@systemoverlord.com
|
||||
export DEBFULLNAME="David Tomaschik"
|
||||
|
||||
# Python setup
|
||||
export PYTHONPATH="$HOME/.python"
|
||||
|
||||
# Add an "alert" alias for long running commands. Use like so:
|
||||
# sleep 10; alert
|
||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
|
||||
# Cryptsetup alias
|
||||
alias luksFormat='sudo cryptsetup luksFormat -s 512 -c aes-xts-plain --use-random -h sha256 -i 5000'
|
||||
|
||||
if [ -f $HOME/.localenv ] ; then source $HOME/.localenv ; fi
|
||||
Reference in New Issue
Block a user