56 lines
1.2 KiB
Bash
56 lines
1.2 KiB
Bash
export EDITOR="vim"
|
|
export PS1="\n[\[\e[37m\]\u\[\e[0m\]@\[\e[37;2m\]\h\[\e[0m\]] \[\e[1m\]\w \[\e[0;2m\]J:\[\e[0m\]\j\n\$ "
|
|
|
|
extract() {
|
|
if [ -f $1 ]; then
|
|
case $1 in
|
|
*.tar.bz2) tar xjf $1 ;;
|
|
*.tar.gz) tar xzf $1 ;;
|
|
*.bz2) bunzip2 $1 ;;
|
|
*.rar) unrar e $1 ;;
|
|
*.gz) gunzip $1 ;;
|
|
*.tar) tar xf $1 ;;
|
|
*.tbz2) tar xjf $1 ;;
|
|
*.tgz) tar xzf $1 ;;
|
|
*.zip) unzip $1 ;;
|
|
*.Z) uncompress $1 ;;
|
|
*.7z) 7z x $1 ;;
|
|
*) echo "'$1' cannot be extracted via extract()" ;;
|
|
esac
|
|
else
|
|
echo "'$1' is not a valid file"
|
|
fi
|
|
}
|
|
|
|
# Commands that should be applied only for interactive shells.
|
|
[[ $- == *i* ]] || return
|
|
|
|
HISTFILESIZE=100000
|
|
HISTSIZE=10000
|
|
|
|
shopt -s histappend
|
|
shopt -s checkwinsize
|
|
shopt -s extglob
|
|
# shopt -s globstar
|
|
# shopt -s checkjobs
|
|
|
|
alias l='ls -alh'
|
|
alias ls='ls --color=auto'
|
|
alias grep='grep --color=auto'
|
|
alias ll='ls -lhi'
|
|
alias ta='tmux attach'
|
|
alias t='tmux'
|
|
alias v='nvim'
|
|
alias t="tmux"
|
|
alias ta="tmux attach"
|
|
|
|
set completion-ignore-case On
|
|
|
|
# Use bash-completion, if available
|
|
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] &&
|
|
. /usr/share/bash-completion/bash_completion
|
|
|
|
export OFLAGS="--ozone-platform-hint=auto"
|
|
|
|
export PATH=$PATH:/home/trude/.local/bin
|