zshrc: Add aliases for fossil
This commit is contained in:
parent
55a1a88915
commit
77cc7969d4
1 changed files with 13 additions and 4 deletions
17
zshrc
17
zshrc
|
@ -182,7 +182,7 @@ which gpg2 &>/dev/null && alias gpg=gpg2
|
||||||
make() {
|
make() {
|
||||||
case "$PWD" in
|
case "$PWD" in
|
||||||
# pkgsrc needs bmake and does not like MAKEFLAGS including -j.
|
# pkgsrc needs bmake and does not like MAKEFLAGS including -j.
|
||||||
*/pkgsrc | */pkgsrc/*)
|
*/pkgsrc*)
|
||||||
MAKEFLAGS= =$(__find_command bmake make) $@
|
MAKEFLAGS= =$(__find_command bmake make) $@
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -193,6 +193,15 @@ make() {
|
||||||
|
|
||||||
alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"
|
alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"
|
||||||
|
|
||||||
|
if which fossil &>/dev/null; then
|
||||||
|
alias fsl="fossil"
|
||||||
|
alias fsls="fossil status"
|
||||||
|
|
||||||
|
fsld() {
|
||||||
|
fossil diff "$@" | vim -R -
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
# pkgsrc does not like MAKEFLAGS including -j
|
# pkgsrc does not like MAKEFLAGS including -j
|
||||||
which pkg_chk &>/dev/null && alias pkg_chk="MAKEFLAGS= pkg_chk"
|
which pkg_chk &>/dev/null && alias pkg_chk="MAKEFLAGS= pkg_chk"
|
||||||
which pkg_rolling-replace &>/dev/null &&
|
which pkg_rolling-replace &>/dev/null &&
|
||||||
|
@ -206,7 +215,7 @@ alias gpg-ssh="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh"
|
||||||
alias gpg-ssh-add="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh-add"
|
alias gpg-ssh-add="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh-add"
|
||||||
alias gpg-sftp="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh sftp"
|
alias gpg-sftp="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh sftp"
|
||||||
|
|
||||||
__pw() {
|
pwnk() {
|
||||||
local clipboard
|
local clipboard
|
||||||
if which pbcopy &>/dev/null; then
|
if which pbcopy &>/dev/null; then
|
||||||
clipboard=pbcopy
|
clipboard=pbcopy
|
||||||
|
@ -219,8 +228,8 @@ __pw() {
|
||||||
|
|
||||||
cryptopassphrase $@ | tr -d '\n' | $clipboard
|
cryptopassphrase $@ | tr -d '\n' | $clipboard
|
||||||
}
|
}
|
||||||
alias pw="__pw -k ~/.cryptopassphrase.key"
|
alias pw="pwnk -k ~/.cryptopassphrase.key"
|
||||||
alias pws="__pw -k ~/.cryptopassphrase-server.key"
|
alias pws="pwnk -k ~/.cryptopassphrase-server.key"
|
||||||
|
|
||||||
ixio() { curl -F 'f:1=<-' ix.io }
|
ixio() { curl -F 'f:1=<-' ix.io }
|
||||||
0x0st() { curl -F'file=@-' https://0x0.st }
|
0x0st() { curl -F'file=@-' https://0x0.st }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue