1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 00:17:59 +00:00
prezto/modules/yank/init.zsh

26 lines
463 B
Bash
Raw Normal View History

2018-10-28 15:44:19 +00:00
#
# Defines yank aliases.
#
# Authors:
# Daniel Carrillo
#
# Return if requirements are not found.
if (( ! $+commands[yank] )); then
return 1
fi
#
# Aliases
#
alias yenv="env | yank -d =" # yank environment variables
#
# Piping aliases
#
alias yl="yank -l" # yank a whole line from command output
alias yle="yank -l -- sh" # yank a whole line from command output and
# exec the line as a command