Cleanup aliases and move functions to .local/bin
This commit is contained in:
parent
0474b35031
commit
f1594b3cbb
5 changed files with 12 additions and 13 deletions
|
@ -15,8 +15,6 @@ alias du='du -h'
|
|||
|
||||
alias free='free -h'
|
||||
|
||||
alias gpg2-decrypt='function _gpg2-decrypt(){ gpg2 --output ${1%".gpg"} --decrypt $1; }; _gpg2-decrypt'
|
||||
alias gpg2-encrypt='function _gpg2-encrypt(){ gpg2 --output $1.gpg --encrypt $1; }; _gpg2-encrypt'
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
alias hist-grep='history 0 | grep '
|
||||
|
@ -25,23 +23,12 @@ alias ls='ls -Flh --color=auto'
|
|||
|
||||
alias lsblk='lsblk -o +PARTLABEL -o +FSTYPE'
|
||||
|
||||
alias mail-alias='function _mail-alias(){ echo "$1-$(uuidgen)@relay.msrg.cc"; }; _mail-alias'
|
||||
alias make='make -j5'
|
||||
alias md5='ms5'
|
||||
alias md5sum-dir='function _md5sum-dir(){ find $1 -type f -exec md5sum {} \; | md5sum; }; _md5sum-dir'
|
||||
|
||||
alias pacman-autoremove='pacman -Rns $(pacman -Qtdq)'
|
||||
|
||||
alias qutebrowser-kiosk='qutebrowser -B $XDG_DATA_DIR/qutebrowser-kiosk -C $XDG_CONFIG_DIR/qutebrowser/config-kiosk.py'
|
||||
|
||||
alias sudo='sudo '
|
||||
alias synced-repos-status='
|
||||
echo "dotfiles" && dotfiles status;
|
||||
echo "\n\ndotfiles-mail" && dotfiles-mail status;
|
||||
echo "\n\npass git" && pass git status
|
||||
'
|
||||
|
||||
alias rm='rm -I --one-file-system -v'
|
||||
|
||||
alias vim-grep='function _vim-grep(){ vim $(grep $@) }; _vim-grep'
|
||||
alias vim-find='function _vim-find(){ vim $(find $@) }; _vim-find'
|
||||
|
|
3
.local/bin/gpg2-decrypt
Executable file
3
.local/bin/gpg2-decrypt
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
gpg2 --output ${1%".gpg"} --decrypt $1
|
3
.local/bin/gpg2-encrypt
Executable file
3
.local/bin/gpg2-encrypt
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
gpg2 --output $1.gpg --encrypt $1
|
3
.local/bin/vim-find
Executable file
3
.local/bin/vim-find
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
vim $(find $@)
|
3
.local/bin/vim-grep
Executable file
3
.local/bin/vim-grep
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
vim $(grep $@)
|
Loading…
Reference in a new issue