68 lines
1.5 KiB
Bash
68 lines
1.5 KiB
Bash
|
# If not running interactively, don't do anything
|
||
|
case $- in
|
||
|
*i*) ;;
|
||
|
*) return;;
|
||
|
esac
|
||
|
|
||
|
shopt -s histappend
|
||
|
shopt -s globstar
|
||
|
shopt -s checkwinsize
|
||
|
|
||
|
HISTSIZE=1000
|
||
|
HISTFILESIZE=2000
|
||
|
HISTCONTROL=ignoreboth
|
||
|
|
||
|
# colored GCC warnings and errors
|
||
|
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||
|
|
||
|
if [ -f ~/.bash_aliases ]; then
|
||
|
. ~/.bash_aliases
|
||
|
fi
|
||
|
|
||
|
# enable programmable completion features (you don't need to enable
|
||
|
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||
|
# sources /etc/bash.bashrc).
|
||
|
if ! shopt -oq posix; then
|
||
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||
|
. /usr/share/bash-completion/bash_completion
|
||
|
elif [ -f /etc/bash_completion ]; then
|
||
|
. /etc/bash_completion
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
#######################################
|
||
|
# prompt
|
||
|
|
||
|
PS1='\n\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\$ '
|
||
|
PS2="> $RS"
|
||
|
|
||
|
#######################################
|
||
|
|
||
|
alias lll='ls -AlhF'
|
||
|
alias la='ls -A'
|
||
|
alias l='ls -CF'
|
||
|
|
||
|
ll() {
|
||
|
ls -lFh "$@" ; echo $(ls -A "$@" | grep "^\." | wc -l) hidden
|
||
|
}
|
||
|
|
||
|
lh() {
|
||
|
ls -AlFh "$@" | grep " \."
|
||
|
}
|
||
|
|
||
|
#######################################
|
||
|
|
||
|
bind '"\e[A"':history-search-backward
|
||
|
bind '"\e[B"':history-search-forward
|
||
|
bind "TAB:menu-complete"
|
||
|
bind 'set completion-ignore-case on'
|
||
|
|
||
|
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
|
||
|
|
||
|
#######################################
|
||
|
|
||
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||
|
|
||
|
PATH=$PATH:/opt/innovenergy/scripts
|