Fish/nvim config
This commit is contained in:
@@ -5,4 +5,6 @@ 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,15 +9,6 @@ if not_installed "fish"; then
|
||||
fi
|
||||
echo "fish is installed"
|
||||
|
||||
# current_shell="$(getent passwd $USER | cut -d: -f7)"
|
||||
# fish_path="$(which fish)"
|
||||
# if [ "$current_shell" != "$fish_path" ]; then
|
||||
# echo "setting fish as default, current shell was $current_shell"
|
||||
# sudo chsh -s "$fish_path" "$USER"
|
||||
# sudo usermod -s "$fish_path" "$USER"
|
||||
# fi
|
||||
# echo "fish is default login shell"
|
||||
|
||||
fish_source="$dotfiles_dir/fish"
|
||||
fish_target="$XDG_CONFIG_HOME/fish"
|
||||
link_folder "$fish_source" "$fish_target"
|
||||
@@ -31,7 +22,7 @@ if ! [ -f "$fisher_location" ]; then
|
||||
curl https://git.io/fisher --create-dirs -sLo "$fisher_location"
|
||||
fi
|
||||
echo "fisher is installed, updating..."
|
||||
fish -c "fisher"
|
||||
sh -c 'env HOME=$(mktemp -d) fish -c "fisher"'
|
||||
|
||||
fish -c "fisher --version"
|
||||
|
||||
|
||||
13
install/05-vim.sh
Executable file
13
install/05-vim.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
vim_source="$dotfiles_dir/vim"
|
||||
vim_target="$XDG_CONFIG_HOME/nvim"
|
||||
link_folder "$vim_source" "$vim_target"
|
||||
echo "vim dotfiles are linked"
|
||||
|
||||
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||
nvim -E PlugInstall -c q
|
||||
|
||||
nvim --version
|
||||
|
||||
@@ -9,6 +9,8 @@ if not_installed "nvm"; then
|
||||
run "https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh" \
|
||||
"bash"
|
||||
source "$NVM_DIR/nvm.sh"
|
||||
nvm alias default lts
|
||||
nvm default
|
||||
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user