config/~/Bash/.bashrc

25 lines
716 B
Bash
Raw Normal View History

2021-07-21 01:07:46 +03:00
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
2022-07-09 23:08:21 +03:00
export PS1='\[\e[0;33m\][\t] \[\e[0;32m\][\W]\[\e[0m\] \[\e[0;31m\]> \[\e[0m\]'
2022-03-15 01:46:48 +03:00
export GPG_TTY=$(tty)
2022-07-08 14:55:13 +03:00
export PATH="$PATH:$HOME/.bin"
2021-07-21 01:07:46 +03:00
2021-08-09 23:11:20 +03:00
# ALIASES
2021-07-21 01:07:46 +03:00
alias ls='ls --color=auto'
alias df='df -h'
alias du='du -h'
2022-03-15 01:21:55 +03:00
alias ..='cd ..'
2021-07-21 01:07:46 +03:00
2021-08-08 10:02:23 +03:00
alias tardir='tar -czf "../${PWD##*/}.tar.gz"' # tar.gz current dir
alias pacman-orphaned='pacman -Rns $(pacman -Qtdq)' # delete orphaned packages (Arch Linux)
2022-06-25 20:30:27 +03:00
# 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"
2022-07-08 14:55:13 +03:00
export PATH="$PATH:node_modules/.bin"
2022-06-25 20:30:27 +03:00
fi