diff options
Diffstat (limited to '.config/zsh/alias.zsh')
-rw-r--r-- | .config/zsh/alias.zsh | 6 |
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 |