Update files structure
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@@ -3,6 +3,13 @@ tmp
|
|||||||
*.deb
|
*.deb
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
|
**/plugged
|
||||||
|
**/autoload
|
||||||
|
**/functions
|
||||||
|
**/completions
|
||||||
|
**/conf.d
|
||||||
|
**/fish_variables
|
||||||
|
|
||||||
# pytest
|
# pytest
|
||||||
**/__pycache__
|
**/__pycache__
|
||||||
**/.pytest_cache
|
**/.pytest_cache
|
||||||
|
|||||||
15
bootstrap.pl
15
bootstrap.pl
@@ -9,11 +9,14 @@ use Stow;
|
|||||||
|
|
||||||
# Stow files
|
# Stow files
|
||||||
my $dir = getcwd;
|
my $dir = getcwd;
|
||||||
my %stow_options = (
|
my %stow_options = ( dir => $dir,
|
||||||
dir => "$dir/files",
|
target => $ENV{'HOME'});
|
||||||
target => "$ENV{'HOME'}"
|
|
||||||
);
|
|
||||||
my $stow = new Stow(%stow_options);
|
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";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
function nvm
|
|
||||||
bass source $NVM_DIR/nvm.sh --no-use ';' nvm $argv
|
|
||||||
end
|
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
function update -d 'run dotfiles install'
|
|
||||||
make --directory="$WORKSPACE/dotfiles"
|
|
||||||
end
|
|
||||||
@@ -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
|
|
||||||
@@ -9,11 +9,6 @@ if not_installed "fish"; then
|
|||||||
fi
|
fi
|
||||||
echo "fish is installed"
|
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
|
fish --version
|
||||||
|
|
||||||
fisher_location="$XDG_CONFIG_HOME/fish/functions/fisher.fish"
|
fisher_location="$XDG_CONFIG_HOME/fish/functions/fisher.fish"
|
||||||
|
|||||||
@@ -11,8 +11,4 @@ if [ ! -f "$ssh_key" ]; then
|
|||||||
fi
|
fi
|
||||||
echo "ssh key exists"
|
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"
|
cat "$ssh_pub"
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -1,11 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source "$(dirname $0)/utils.sh"
|
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"
|
mkdir -p "$XDG_DATA_HOME/nvim/backup"
|
||||||
plug_target="$XDG_DATA_HOME/nvim/site/autoload/plug.vim"
|
plug_target="$XDG_DATA_HOME/nvim/site/autoload/plug.vim"
|
||||||
if [ ! -f $plug_target ]; then
|
if [ ! -f $plug_target ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user