You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
1.7 KiB
Bash
87 lines
1.7 KiB
Bash
6 years ago
|
#
|
||
|
# ~/.bashrc
|
||
|
#
|
||
|
|
||
|
# If not running interactively, don't do anything
|
||
|
[[ $- != *i* ]] && return
|
||
|
|
||
6 years ago
|
HISTSIZE=10000
|
||
|
HISTFILESIZE=10000
|
||
5 years ago
|
PATH="$HOME/.bin:$PATH"
|
||
6 years ago
|
|
||
6 years ago
|
function q1 {
|
||
|
echo 'Important and Urgent'
|
||
|
if [ $# -ne 1 ]; then
|
||
|
task q1
|
||
|
else
|
||
|
task $1 mod prio:H +urg -unu
|
||
|
task inbox
|
||
|
fi
|
||
|
}
|
||
|
function q2 {
|
||
|
echo 'Important and Not Urgent'
|
||
|
if [ $# -ne 1 ]; then
|
||
|
task q2
|
||
|
else
|
||
|
task $1 mod prio:H +unu -urg
|
||
|
task inbox
|
||
|
fi
|
||
|
}
|
||
|
function q3 {
|
||
|
echo 'Not Important and Urgent'
|
||
|
if [ $# -ne 1 ]; then
|
||
|
task q3
|
||
|
else
|
||
|
task $1 mod prio:L +urg -unu
|
||
|
task inbox
|
||
|
fi
|
||
|
}
|
||
|
function q4 {
|
||
|
echo 'Not Important and Not Urgent'
|
||
|
if [ $# -ne 1 ]; then
|
||
|
task q4
|
||
|
else
|
||
|
task $1 mod prio:L +unu -urg
|
||
|
task inbox
|
||
|
fi
|
||
|
}
|
||
|
function toverview {
|
||
6 years ago
|
q4
|
||
6 years ago
|
echo
|
||
6 years ago
|
q3
|
||
6 years ago
|
echo
|
||
|
q2
|
||
|
echo
|
||
6 years ago
|
q1
|
||
|
echo Inbox
|
||
|
task inbox
|
||
6 years ago
|
}
|
||
|
|
||
6 years ago
|
function sqlsetup {
|
||
6 years ago
|
sudo mount -t drvfs '\\hldnt06.berner.lan\softwaredepot/common/microsoft/sqlsetup/scripts' ~/shares/sqlsetup
|
||
|
rm -r ~/shares/sqlsetup/*
|
||
|
cp -a ~/git/sqlsetup/* ~/shares/sqlsetup/
|
||
6 years ago
|
}
|
||
|
|
||
6 years ago
|
function _df() {
|
||
|
echo "$*"
|
||
|
btrfs filesystem usage "$*" 2> /dev/null | grep -o 'Free .*'
|
||
|
btrfs filesystem df "$*"
|
||
|
echo
|
||
|
}
|
||
|
function dfall() {
|
||
|
_df /hdd
|
||
|
_df /ssd
|
||
|
_df /nvme
|
||
|
}
|
||
|
|
||
|
alias ls='ls --color=auto'
|
||
|
PS1='`[ $? = 0 ] || echo "$? "`[\u@\h \w]\$ '
|
||
6 years ago
|
alias docker='sudo docker'
|
||
6 years ago
|
alias autopurge='sudo pacman -Rns $(pacman -Qdtq)'
|
||
5 years ago
|
alias syu='sudo pacman -Syu; sudo pacman -Rns $(pacman -Qdtq); pacman -Qem; cower -u'
|
||
6 years ago
|
alias d-u='sudo apt update && sudo apt full-upgrade && sudo apt --purge autoremove && sudo apt clean'
|
||
6 years ago
|
alias pp='git pull -r && git push'
|
||
6 years ago
|
alias statdiff='git status && git diff --staged'
|
||
5 years ago
|
|
||
|
set -o vi
|