aboutsummaryrefslogtreecommitdiff
path: root/config/zsh/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'config/zsh/plugins')
-rw-r--r--config/zsh/plugins/fzf-cd.zsh4
-rw-r--r--config/zsh/plugins/timer.zsh1
2 files changed, 3 insertions, 2 deletions
diff --git a/config/zsh/plugins/fzf-cd.zsh b/config/zsh/plugins/fzf-cd.zsh
index 02b85e7..9d47e17 100644
--- a/config/zsh/plugins/fzf-cd.zsh
+++ b/config/zsh/plugins/fzf-cd.zsh
@@ -1,6 +1,6 @@
fzf-change-dir-cwd() { # fzf + cd in cwd
- selected=$(find . -maxdepth 1 -type d | fzf);
+ selected=$(fd --type d --maxdepth 1 --hidden --no-ignore | fzf);
if [ ! -z "$selected" ] && [ "$selected" != "$(pwd)" ]; then
cd $selected;
fi
@@ -11,7 +11,7 @@ zle -N fzf-change-dir-cwd;
bindkey '^O' fzf-change-dir-cwd;
fzf-change-dir() {
- local result=$(find -type d | fzf);
+ local result=$(fd --type d --hidden --no-ignore | fzf);
if ! [[ -z "$result" ]]; then
cd "$result"
fi
diff --git a/config/zsh/plugins/timer.zsh b/config/zsh/plugins/timer.zsh
index 3610877..5505657 100644
--- a/config/zsh/plugins/timer.zsh
+++ b/config/zsh/plugins/timer.zsh
@@ -1,5 +1,6 @@
function preexec() {
timer=$(($(date +%s%0N)/1000000))
+ echo -n "\\x1b]133;A\\x1b\\" # OSC 133 for marking prompt
}
function precmd() {