summaryrefslogtreecommitdiffstats
path: root/.config/zsh/alias.zsh
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-02 11:14:11 +0200
committerjoe <rbo@gmx.us>2025-10-02 11:14:11 +0200
commit4607f5eb8b4946a8963d8dabb6cf8e27777ecf5d (patch)
treec3824fb39d38d2569985c531c3e9038cec8e7102 /.config/zsh/alias.zsh
parentup (diff)
downloaddotfiles-bsd-4607f5eb8b4946a8963d8dabb6cf8e27777ecf5d.tar.gz
dotfiles-bsd-4607f5eb8b4946a8963d8dabb6cf8e27777ecf5d.tar.bz2
dotfiles-bsd-4607f5eb8b4946a8963d8dabb6cf8e27777ecf5d.tar.xz
dotfiles-bsd-4607f5eb8b4946a8963d8dabb6cf8e27777ecf5d.tar.zst
dotfiles-bsd-4607f5eb8b4946a8963d8dabb6cf8e27777ecf5d.zip
up
Diffstat (limited to '.config/zsh/alias.zsh')
-rw-r--r--.config/zsh/alias.zsh6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh
index b4dce00..6e8bfea 100644
--- a/.config/zsh/alias.zsh
+++ b/.config/zsh/alias.zsh
@@ -138,8 +138,12 @@ dgg() {
}
alias \
srcnt='find . -type f -name "*.c" -exec cat {} \; | sed "/^\//d" | sed "/^\*/d" | sed "/^ \*/d" | sed "/^\/\//d" | sed "/^$/d" | wc -l | tr -d " "' \
- v='nvim $(fzf --preview="head -$FZF_PREVIEW_LINES {}")' \
tohex='printf "0x%x\n"'
+v() {
+ file=$(fzf --preview="head -$FZF_PREVIEW_LINES {}")
+ [ -z $file ] && return
+ nvim $file
+}
ebin() {
p=$(pwd)
cd "$HOME"/.local/bin || return