add configuration files
This commit is contained in:
48
.bashrc
Normal file
48
.bashrc
Normal file
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# history settings
|
||||
HISTCONTROL=ignoreboth # don't put duplicate lines or lines starting with space in the history.
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
|
||||
# PS1='[\u@\h \W]\$ '
|
||||
PS1='\[\033[01;35m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
|
||||
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # coloured GCC warnings and errors
|
||||
|
||||
#
|
||||
# aliases
|
||||
#
|
||||
|
||||
# aliases for colour
|
||||
alias dir='dir --color=auto'
|
||||
alias vdir='vdir --color=auto'
|
||||
alias ls='ls -A --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias diff='diff --color'
|
||||
alias ip='ip -c'
|
||||
|
||||
alias home-git="git --git-dir=$HOME/.home-conf.git --work-tree=$HOME"
|
||||
|
||||
# application aliases
|
||||
alias py3='python3'
|
||||
alias ncdu='ncdu --color=dark -t 16'
|
||||
alias hyfetch='hyfetch --ascii-file $HOME/.config/hyfetch-ascii'
|
||||
|
||||
# aliases to avoid mistakes
|
||||
alias cp='cp -i'
|
||||
alias mv='mv -i'
|
||||
#alias rm='rm -i'
|
||||
|
||||
# opt out of dotnet's telenetry
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
|
||||
# cute lil hyfetch :3
|
||||
if [[ $TERM == "xterm-kitty" ]]; then
|
||||
hyfetch
|
||||
fi
|
||||
Reference in New Issue
Block a user