Update files structure

This commit is contained in:
Andrejus
2020-07-12 04:01:46 +01:00
parent b748e73e80
commit 1418a61962
19 changed files with 16 additions and 47 deletions

7
.gitignore vendored
View File

@@ -3,6 +3,13 @@ tmp
*.deb
*.log
**/plugged
**/autoload
**/functions
**/completions
**/conf.d
**/fish_variables
# pytest
**/__pycache__
**/.pytest_cache

View File

@@ -9,11 +9,14 @@ use Stow;
# Stow files
my $dir = getcwd;
my %stow_options = (
dir => "$dir/files",
target => "$ENV{'HOME'}"
);
my %stow_options = ( dir => $dir,
target => $ENV{'HOME'});
my $stow = new Stow(%stow_options);
my %conflicts = $stow->get_conflicts;
$stow->process_tasks() unless %conflicts;
my @pkgs = ('files');
$stow->plan_stow(@pkgs);
# my %conflicts = $stow->get_conflicts();
$stow->process_tasks();
print "done\n";

View File

@@ -1,4 +0,0 @@
function nvm
bass source $NVM_DIR/nvm.sh --no-use ';' nvm $argv
end

View File

@@ -1,3 +0,0 @@
function update -d 'run dotfiles install'
make --directory="$WORKSPACE/dotfiles"
end

View File

@@ -1,11 +0,0 @@
#!/usr/bin/env bash
source "$(dirname $0)/utils.sh"
bash_source="$dotfiles_dir/bash"
bash_target="$HOME"
link_folder "$bash_source" "$bash_target"
echo "bash dotfiles are linked"
sudo chmod -R 0644 /etc/update-motd.d/
bash --version

View File

@@ -9,11 +9,6 @@ if not_installed "fish"; then
fi
echo "fish is installed"
fish_source="$dotfiles_dir/fish"
fish_target="$XDG_CONFIG_HOME/fish"
link_folder "$fish_source" "$fish_target"
echo "fish dotfiles linked"
fish --version
fisher_location="$XDG_CONFIG_HOME/fish/functions/fisher.fish"

View File

@@ -11,8 +11,4 @@ if [ ! -f "$ssh_key" ]; then
fi
echo "ssh key exists"
# ssh dotfiles are symlinked
ssh_source="$dotfiles_dir/ssh"
link_folder "$ssh_source" "$ssh_target"
echo "ssh dotfiles are symlinked"
cat "$ssh_pub"

View File

@@ -1,9 +0,0 @@
#!/usr/bin/env bash
source "$(dirname $0)/utils.sh"
# git dotfiles are symlinked
git_source="$dotfiles_dir/git"
git_target="$HOME"
link_folder "$git_source" "$git_target"
printf "git dotfiles linked\n"
git --version

View File

@@ -1,11 +1,6 @@
#!/usr/bin/env bash
source "$(dirname $0)/utils.sh"
vim_source="$dotfiles_dir/vim"
vim_target="$XDG_CONFIG_HOME/nvim"
link_folder "$vim_source" "$vim_target"
echo "vim dotfiles are linked"
mkdir -p "$XDG_DATA_HOME/nvim/backup"
plug_target="$XDG_DATA_HOME/nvim/site/autoload/plug.vim"
if [ ! -f $plug_target ]; then