summaryrefslogtreecommitdiff
path: root/home-config/fish/functions
diff options
context:
space:
mode:
Diffstat (limited to 'home-config/fish/functions')
-rw-r--r--home-config/fish/functions/__zoxide_cd.fish6
-rw-r--r--home-config/fish/functions/__zoxide_pwd.fish7
-rw-r--r--home-config/fish/functions/__zoxide_z.fish13
-rw-r--r--home-config/fish/functions/__zoxide_z_complete.fish15
-rw-r--r--home-config/fish/functions/__zoxide_zi.fish4
5 files changed, 0 insertions, 45 deletions
diff --git a/home-config/fish/functions/__zoxide_cd.fish b/home-config/fish/functions/__zoxide_cd.fish
deleted file mode 100644
index d5a8b2b..0000000
--- a/home-config/fish/functions/__zoxide_cd.fish
+++ /dev/null
@@ -1,6 +0,0 @@
1function __zoxide_cd
2 __zoxide_cd_internal $argv
3 if test "$_ZO_ECHO" = 1
4 __zoxide_pwd
5 end
6end
diff --git a/home-config/fish/functions/__zoxide_pwd.fish b/home-config/fish/functions/__zoxide_pwd.fish
deleted file mode 100644
index 49f9357..0000000
--- a/home-config/fish/functions/__zoxide_pwd.fish
+++ /dev/null
@@ -1,7 +0,0 @@
1function __zoxide_pwd
2 if test "$_ZO_RESOLVE_SYMLINKS" = 1
3 builtin pwd -P
4 else
5 builtin pwd -L
6 end
7end
diff --git a/home-config/fish/functions/__zoxide_z.fish b/home-config/fish/functions/__zoxide_z.fish
deleted file mode 100644
index bb24f69..0000000
--- a/home-config/fish/functions/__zoxide_z.fish
+++ /dev/null
@@ -1,13 +0,0 @@
1function __zoxide_z
2 set --local argc (count $argv)
3 if test $argc -eq 0
4 __zoxide_cd $HOME
5 else if test "$argv" = -
6 __zoxide_cd -
7 else if test $argc -eq 1 -a -d $argv[1]
8 __zoxide_cd $argv[1]
9 else
10 set --local result (command zoxide query --exclude (__zoxide_pwd) -- $argv)
11 and __zoxide_cd $result
12 end
13end
diff --git a/home-config/fish/functions/__zoxide_z_complete.fish b/home-config/fish/functions/__zoxide_z_complete.fish
deleted file mode 100644
index 9e6196f..0000000
--- a/home-config/fish/functions/__zoxide_z_complete.fish
+++ /dev/null
@@ -1,15 +0,0 @@
1function __zoxide_z_complete
2 set --local tokens (commandline --current-process --tokenize)
3 set --local curr_tokens (commandline --cut-at-cursor --current-process --tokenize)
4
5 if test (count $tokens) -le 2 -a (count $curr_tokens) -eq 1
6 # If there are < 2 arguments, use `cd` completions.
7 __fish_complete_directories "$tokens[2]" ''
8 else if test (count $tokens) -eq (count $curr_tokens)
9 # If the last argument is empty, use interactive selection.
10 set --local query $tokens[2..-1]
11 set --local result (zoxide query --interactive -- $query)
12 commandline --current-process "$tokens[1] "(string escape $result)
13 commandline --function repaint
14 end
15end
diff --git a/home-config/fish/functions/__zoxide_zi.fish b/home-config/fish/functions/__zoxide_zi.fish
deleted file mode 100644
index 35837ac..0000000
--- a/home-config/fish/functions/__zoxide_zi.fish
+++ /dev/null
@@ -1,4 +0,0 @@
1function __zoxide_zi
2 set --local result (command zoxide query --interactive -- $argv)
3 and __zoxide_cd $result
4end