Use rm
This commit is contained in:
parent
a3057f378a
commit
ff1c050dcd
12 changed files with 13 additions and 2 deletions
1
common/bat/bat
Symbolic link
1
common/bat/bat
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/daniel/.home/.config/lytedev-dotfiles/common/bat
|
|
@ -26,7 +26,7 @@ end
|
|||
|
||||
function l -a dot -a target -d "Symlink a dotfile configuration file or directory"
|
||||
if test -L $target || test -f $target || test -d $target
|
||||
rm -rf "$target"
|
||||
command rm -rf "$target"
|
||||
end
|
||||
# check if the directory that will contain the link exists
|
||||
set -l d (dirname $target)
|
||||
|
@ -72,7 +72,7 @@ end
|
|||
|
||||
set -q ENV_PATH || set ENV_PATH $XDG_CONFIG_HOME/lytedev-env
|
||||
set -q DOTFILES_PATH || set DOTFILES_PATH $XDG_CONFIG_HOME/lytedev-dotfiles
|
||||
rm -f $ENV_PATH/empty
|
||||
command rm -f $ENV_PATH/empty
|
||||
ln -s $DOTFILES_PATH/common/empty-env $ENV_PATH/empty
|
||||
|
||||
echo "Dotfiles Installed! Don't forget to setup environments and change the user's shell as needed!"
|
||||
|
|
1
common/fish/fish
Symbolic link
1
common/fish/fish
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/daniel/.home/.config/lytedev-dotfiles/common/fish
|
1
common/gitui/gitui
Symbolic link
1
common/gitui/gitui
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/daniel/.home/.config/lytedev-dotfiles/common/gitui
|
1
common/helix/helix
Symbolic link
1
common/helix/helix
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/daniel/.home/.config/lytedev-dotfiles/common/helix
|
1
common/kitty/kitty
Symbolic link
1
common/kitty/kitty
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/daniel/.home/.config/lytedev-dotfiles/common/kitty
|
1
common/nnn/nnn
Symbolic link
1
common/nnn/nnn
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/daniel/.home/.config/lytedev-dotfiles/common/nnn
|
1
common/pgcli/pgcli
Symbolic link
1
common/pgcli/pgcli
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/daniel/.home/.config/lytedev-dotfiles/common/pgcli
|
1
common/scim/lua/lua
Symbolic link
1
common/scim/lua/lua
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/daniel/.home/.config/lytedev-dotfiles/common/scim/lua
|
1
common/weechat/weechat
Symbolic link
1
common/weechat/weechat
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/daniel/.home/.config/lytedev-dotfiles/common/weechat
|
1
common/wezterm/wezterm
Symbolic link
1
common/wezterm/wezterm
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/daniel/.home/.config/lytedev-dotfiles/common/wezterm
|
1
common/zellij/zellij
Symbolic link
1
common/zellij/zellij
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/daniel/.home/.config/lytedev-dotfiles/common/zellij
|
Reference in a new issue