summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-16 15:59:43 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-16 15:59:43 +0100
commitc6299acc2a68cef3c854978fd1a9cf699ccdb77e (patch)
tree22ba181efaa5ec7a43f4f30b2cf5054fa0b44a84 /.config
parentMore hier(7) respectful (diff)
downloaddotfiles-bsd-c6299acc2a68cef3c854978fd1a9cf699ccdb77e.tar.gz
dotfiles-bsd-c6299acc2a68cef3c854978fd1a9cf699ccdb77e.tar.bz2
dotfiles-bsd-c6299acc2a68cef3c854978fd1a9cf699ccdb77e.tar.xz
dotfiles-bsd-c6299acc2a68cef3c854978fd1a9cf699ccdb77e.tar.zst
dotfiles-bsd-c6299acc2a68cef3c854978fd1a9cf699ccdb77e.zip
Linkview update
Diffstat (limited to '.config')
-rw-r--r--.config/zsh/alias.zsh18
1 files changed, 17 insertions, 1 deletions
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh
index d65edd3..b779c07 100644
--- a/.config/zsh/alias.zsh
+++ b/.config/zsh/alias.zsh
@@ -54,7 +54,23 @@ alias v='nvim $(fzf --preview="head -$FZF_PREVIEW_LINES {}")'
vbi() {
p=$(pwd)
cd "$HOME"/.local/bin || return
- nvim $(fzf --preview='head -$FZF_PREVIEW_LINES {}')
+ sc=$(fzf --preview='head -$FZF_PREVIEW_LINES {}')
+ if [ ! "$sc" ]; then
+ cd $p
+ return
+ fi
+ nvim $sc
+ cd $p
+}
+vco() {
+ p=$(pwd)
+ cd "$HOME"/.config || return
+ sc=$(fzf --preview='head -$FZF_PREVIEW_LINES {}')
+ if [ ! "$sc" ]; then
+ cd $p
+ return
+ fi
+ nvim $sc
cd $p
}
pa() {