mirror of
https://github.com/dcarrillo/prezto.git
synced 2026-06-24 23:43:49 +00:00
Add yank module and update script
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
Yank
|
||||||
|
===
|
||||||
|
|
||||||
|
Defines [yank](https://github.com/mptre/yank) aliases.
|
||||||
|
|
||||||
|
Aliases
|
||||||
|
-------
|
||||||
|
|
||||||
|
See [init.zsh](init.zsh) script.
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
#
|
||||||
|
# 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
|
||||||
Executable
+12
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
cd ~/.zprezto
|
||||||
|
|
||||||
|
git fetch upstream
|
||||||
|
git checkout master
|
||||||
|
git merge i -m "Merged" upstream/master
|
||||||
|
git submodule update --init --recursive
|
||||||
|
|
||||||
|
cd -
|
||||||
Reference in New Issue
Block a user