mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-24 09:26:27 +03:00
Remove extraneous file
This commit is contained in:
parent
fb1a437e26
commit
77cea6cdc6
@ -1,23 +0,0 @@
|
||||
function _tide_pwd_var_change -v PWD
|
||||
set -l preMaxDirsPwd (string replace $HOME '~' $PWD)
|
||||
set -l preMaxDirsPwdSplit (string split --no-empty '/' $preMaxDirsPwd)
|
||||
|
||||
set -g _tide_split_pwd $preMaxDirsPwdSplit[(math -$tide_pwd_max_dirs)..-1]
|
||||
set -g _tide_pwd (string join '/' $_tide_split_pwd)
|
||||
|
||||
set -g _tide_git_dir (git rev-parse --show-toplevel 2>/dev/null)
|
||||
|
||||
set -g _tide_pwd_anchors
|
||||
|
||||
if contains 'first' $tide_pwd_anchors
|
||||
set -a _tide_pwd_anchors $_tide_split_pwd[1]
|
||||
end
|
||||
if contains 'last' $tide_pwd_anchors
|
||||
set -a _tide_pwd_anchors $_tide_split_pwd[-1]
|
||||
end
|
||||
if contains 'git' $tide_pwd_anchors
|
||||
set -a _tide_pwd_anchors (string replace $HOME '~' $_tide_git_dir | string split --no-empty -r -m1 '/')
|
||||
end
|
||||
|
||||
_tide_pwd
|
||||
end
|
Loading…
Reference in New Issue
Block a user