40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
export PS1='\[\e[0;33m\][\t] \[\e[0;32m\][\W]\[\e[0m\] \[\e[0;31m\]> \[\e[0m\]'
|
|
|
|
export GPG_TTY=$(tty)
|
|
export PATH="$PATH:$HOME/.bin:$HOME/.local/bin"
|
|
|
|
# PMNG
|
|
export PMNG_PWD_FILE="$HOME/Vault/.password.yml"
|
|
export PMNG_TIMEOUT=10
|
|
|
|
# ALIASES
|
|
alias ls='ls --color=auto'
|
|
alias df='df -h'
|
|
alias du='du -h'
|
|
alias ..='cd ..'
|
|
|
|
alias cfs='cryfs $HOME/.cryfs/ $HOME/Vault' # CryFS mount
|
|
alias tardir='tar -cJf "../${PWD##*/}.tar.xz"' # tar.xz current dir
|
|
alias pacman-orphaned='pacman -Rns $(pacman -Qtdq)' # delete orphaned packages (Arch Linux)
|
|
|
|
# Crystal build
|
|
if command -v shards &> /dev/null; then
|
|
alias cbuild='shards build'
|
|
fi
|
|
|
|
# NVM (Node.js version manager)
|
|
if [ -d "$HOME/.nvm" ]; then
|
|
export NVM_DIR="$HOME/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
|
export PATH="$PATH:node_modules/.bin"
|
|
fi
|
|
|
|
# Porteus Sulime Text
|
|
if [ -d "/opt/sublime_text-4126/" ]; then
|
|
alias subl='/opt/sublime_text-4126/sublime_text'
|
|
fi
|