|
|
@ -49,7 +49,6 @@ alias mkex="chmod 777" |
|
|
|
alias ctle="systemctl enable" |
|
|
|
alias ctls="systemctl start" |
|
|
|
|
|
|
|
|
|
|
|
# mounting {{{ # |
|
|
|
|
|
|
|
alias udm="udisksctl mount -b" |
|
|
@ -59,6 +58,13 @@ alias udub="udisksctl unmount -b /dev/sdc2" |
|
|
|
|
|
|
|
# }}} mounting # |
|
|
|
|
|
|
|
alias tc="touch" |
|
|
|
shrm() { |
|
|
|
for file in "$@"; do |
|
|
|
shred "$file" && rm "$file" |
|
|
|
done |
|
|
|
} |
|
|
|
|
|
|
|
# }}} command line related # |
|
|
|
|
|
|
|
# directory-related {{{ # |
|
|
@ -185,6 +191,17 @@ alias rmsw="rm .sw*" |
|
|
|
function rs(){ redshift -P -O $(echo "scale=2;$1*1000" | bc) ; } |
|
|
|
alias rx="redshift -x" |
|
|
|
|
|
|
|
alias gpe="gpg --encrypt --recipient" |
|
|
|
alias gpd="gpg --decrypt" |
|
|
|
|
|
|
|
alias ps="pass" |
|
|
|
alias psc="pass -c" |
|
|
|
alias pse="pass edit" |
|
|
|
alias psi="pass insert -m" |
|
|
|
alias psg="pass generate -c" |
|
|
|
alias yh="echo 'kevin.mok@live.ca' | xclip -selection clipboard" |
|
|
|
alias yg="xclip -selection clipboard ~/.password-store/social/gmail" |
|
|
|
|
|
|
|
# python related {{{ # |
|
|
|
function grpy() { grep $1 *.py ; } |
|
|
|
alias p3="python3" |
|
|
@ -234,7 +251,7 @@ alias gcamp="ga && git commit --amend --no-edit -S && gpsf" |
|
|
|
# todo: fix |
|
|
|
function gcm(){ echo git commit -m \""$1"\" ; } |
|
|
|
|
|
|
|
function psg() { |
|
|
|
function psgi() { |
|
|
|
git add . |
|
|
|
git commit -m '.' |
|
|
|
git push |
|
|
|