Prepare for nvim
This commit is contained in:
parent
807818911d
commit
65f913310a
4 changed files with 16 additions and 4 deletions
10
.bin/.e
10
.bin/.e
|
@ -13,6 +13,8 @@ declare -A mapper=(
|
|||
["git"]="$HOME/.config/git/config"
|
||||
["git-ignore"]="$HOME/.config/git/ignore"
|
||||
["home-manager"]="$HOME/.config/nixpkgs/home.nix"
|
||||
["nvim"]="$HOME/.config/nvim/"
|
||||
["nvim.packer"]="$HOME/.config/nvim/lua/user/packer.lua"
|
||||
["polybar"]="$HOME/.config/polybar"
|
||||
["qutebrowser"]="$HOME/.config/qutebrowser/common.py"
|
||||
["starship"]="$HOME/.config/starship.toml"
|
||||
|
@ -37,7 +39,13 @@ fi
|
|||
target="${mapper["$1"]}"
|
||||
if [ -n "$target" ]
|
||||
then
|
||||
$EDITOR "$target"
|
||||
if [ -d "$target" ]
|
||||
then
|
||||
cd "$target"
|
||||
$EDITOR .
|
||||
else
|
||||
$EDITOR "$target"
|
||||
fi
|
||||
else
|
||||
echo "Dotfile not found. Use --list (-l) to show all options."
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue