summary refs log tree commit diff
path: root/bin/dots
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dots')
-rwxr-xr-xbin/dots10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/dots b/bin/dots
index 7076ece..c455f58 100755
--- a/bin/dots
+++ b/bin/dots
@@ -7,7 +7,7 @@ git)
 	exec /usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME $*
 	;;
 st | status)
-	exec $0 git status -sb --untracked-files=no
+	exec $0 git status -sb --untracked-files=yes
 	;;
 add)
 	shift
@@ -29,4 +29,12 @@ untracked)
 	shift
 	exec $0 git ls-files -o $*
 	;;
+edit)
+	$0 git ls-files --full-name $HOME |
+		fzf --layout=reverse --height='~60%' \
+			--bind=enter:replace-query+become:"nvim $HOME/{q}"
+	;;
+*)
+	echo "dots has its own subcommands, if you want git, run dots git [git command]"
+	;;
 esac