summaryrefslogtreecommitdiffstats
path: root/.config/zsh/alias.zsh
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-12 15:31:46 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-12 15:31:46 +0100
commita39def555b5207819125fc36491fc375c4dc21e2 (patch)
tree1c9888821a632d3e4edef3d2d5e98e8a9faf2f31 /.config/zsh/alias.zsh
parentUpdate (diff)
downloaddotfiles-bsd-a39def555b5207819125fc36491fc375c4dc21e2.tar.gz
dotfiles-bsd-a39def555b5207819125fc36491fc375c4dc21e2.tar.bz2
dotfiles-bsd-a39def555b5207819125fc36491fc375c4dc21e2.tar.xz
dotfiles-bsd-a39def555b5207819125fc36491fc375c4dc21e2.tar.zst
dotfiles-bsd-a39def555b5207819125fc36491fc375c4dc21e2.zip
New zsh function to edit scripts with fzf
Diffstat (limited to '.config/zsh/alias.zsh')
-rw-r--r--.config/zsh/alias.zsh6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh
index 79e62cb..5ce9d50 100644
--- a/.config/zsh/alias.zsh
+++ b/.config/zsh/alias.zsh
@@ -50,6 +50,12 @@ alias stopdocker='docker-machine stop docker-home'
alias envdocker='eval `docker-machine env docker-home`'
alias vimz='nvim $(fzf)'
alias v='nvim $(fzf)'
+vs() {
+ p=$(pwd)
+ cd "$HOME"/.local/bin || return
+ nvim $(fzf --preview='head -$FZF_PREVIEW_LINES {}')
+ cd $p
+}
pa() {
if [ "$1" ]; then
if cd "$HOME"/.local/packs/"$1"; then