startw/conf/home/bashrc

52 lines
1.6 KiB
Bash
Raw Normal View History

2020-04-05 21:19:19 +02:00
# .bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
2020-04-15 02:44:18 +02:00
echo -e \\n \\e[10{0..7}m\ \ \\e[m \\n \\e[4{0..7}m\ \ \\e[m \\n
2020-05-11 14:04:55 +02:00
HISTCONTROL=ignoreboth
2020-04-15 02:22:12 +02:00
bind "set completion-ignore-case on"
bind "set show-all-if-ambiguous on"
bind "set mark-symlinked-directories on"
2020-04-05 21:19:19 +02:00
alias ls='ls --color=auto'
2020-04-15 02:27:12 +02:00
alias la='ls --color=auto -lAh'
alias gad='git add .'
alias gs='git status'
alias gp='git push'
2020-04-15 02:44:18 +02:00
alias gco='git commit'
2020-08-18 21:15:12 +02:00
alias gd='git diff'
2020-04-15 02:27:12 +02:00
alias rm='rm -i'
alias mv='mv -i'
2020-05-17 18:52:39 +02:00
alias ..='cd ..'
2020-08-18 21:15:12 +02:00
alias open='xdg-open'
2020-09-11 13:05:13 +02:00
alias buonanotte='sudo poweroff'
alias progetti='cd $HOME/Documents/projects'
2020-12-26 13:06:57 +01:00
alias windoze='sudo zzz -R'
alias bruh='make && sudo make install && make clean'
alias mdl='youtube-dl -x --audio-format opus --audio-quality 0 -o "%(title)s.%(ext)s"'
2020-08-18 21:15:12 +02:00
# Colored man pages with less(1)
export LESS="--RAW-CONTROL-CHARS"
export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) # green
export LESS_TERMCAP_md=$(tput bold; tput setaf 6) # cyan
export LESS_TERMCAP_me=$(tput sgr0)
export LESS_TERMCAP_so=$(tput bold; tput setaf 3; tput setab 4) # yellow on blue
export LESS_TERMCAP_se=$(tput rmso; tput sgr0)
export LESS_TERMCAP_us=$(tput smul; tput bold; tput setaf 7) # white
export LESS_TERMCAP_ue=$(tput rmul; tput sgr0)
export LESS_TERMCAP_mr=$(tput rev)
export LESS_TERMCAP_mh=$(tput dim)
export LESS_TERMCAP_ZN=$(tput ssubm)
export LESS_TERMCAP_ZV=$(tput rsubm)
export LESS_TERMCAP_ZO=$(tput ssupm)
export LESS_TERMCAP_ZW=$(tput rsupm)
export GROFF_NO_SGR=1 # For Konsole and Gnome-terminal
2020-04-15 02:27:12 +02:00
2020-04-15 02:44:18 +02:00
PS1='\[\033[33m\][\u] \[\033[1;34m\]\W $ \[\033[0;00m\]'
2020-08-18 21:15:12 +02:00
# Created by `userpath` on 2020-07-06 16:46:37
export PATH="$PATH:/home/ale/.local/bin"