Better use of which-command and a clip func
This commit is contained in:
parent
41ca116a70
commit
70aa423d53
|
@ -10,3 +10,7 @@ alias lessr="less --raw-control-chars "
|
|||
alias sz-edshrc="ed ~/.sz.shrc.d ; exec $SHELL"
|
||||
|
||||
[[ -z "$(env inkscape 2> /dev/null)" && -n "$(flatpak info org.inkscape.Inkscape 2> /dev/null)" ]] && alias inkscape="flatpak run org.inkscape.Inkscape "
|
||||
|
||||
function clip() {
|
||||
xclip -i -sel clipboard
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
TERRAFORM_BIN=$(type -fP terraform | head -1)
|
||||
if [[ -n $TERRAFORM_BIN ]]; then
|
||||
TERRAFORM_BIN=$(which-command terraform | head -1)
|
||||
if [[ -x $TERRAFORM_BIN ]]; then
|
||||
complete -C $TERRAFORM_BIN terraform
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue