fix: fish/nvim
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
jethrokuan/z
|
jethrokuan/z
|
||||||
jorgebucaran/fisher
|
|
||||||
jorgebucaran/hydro
|
jorgebucaran/hydro
|
||||||
jorgebucaran/replay.fish
|
jorgebucaran/replay.fish
|
||||||
joseluisq/gitnow
|
joseluisq/gitnow
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
fish --version
|
fish --version
|
||||||
|
|
||||||
|
current_shell=`readlink -f /proc/$$/exe`
|
||||||
|
fish_shell=`which fish`
|
||||||
|
if [[ "$current_shell" != "$fish_shell" ]]; then
|
||||||
|
chsh -s "$fish_shell"
|
||||||
|
fi
|
||||||
|
|
||||||
fisher_location="$XDG_CONFIG_HOME/fish/functions/fisher.fish"
|
fisher_location="$XDG_CONFIG_HOME/fish/functions/fisher.fish"
|
||||||
if ! [ -f $fisher_location ]; then
|
if ! [ -f $fisher_location ]; then
|
||||||
fish -c "curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher"
|
fish -c "curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher"
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Install neovim from unstable debian repo
|
# Install neovim from unstable debian repo
|
||||||
curl -fsSL "https://ftp-master.debian.org/keys/archive-key-10.asc" | sudo apt-key add -
|
if ! bin_in_path "nvim"; then
|
||||||
echo "deb http://deb.debian.org/debian unstable main" \
|
curl -fsSL "https://ftp-master.debian.org/keys/archive-key-10.asc" | sudo apt-key add -
|
||||||
|
echo "deb http://deb.debian.org/debian unstable main" \
|
||||||
| sudo tee /etc/apt/sources.list.d/unstable.list
|
| sudo tee /etc/apt/sources.list.d/unstable.list
|
||||||
echo "Package: neovim
|
echo "Package: neovim
|
||||||
Pin: release a=unstable
|
Pin: release a=unstable
|
||||||
Pin-Priority: 900" \
|
Pin-Priority: 900" \
|
||||||
| sudo tee /etc/apt/preferences.d/neovim
|
| sudo tee /etc/apt/preferences.d/neovim
|
||||||
update
|
update
|
||||||
install neovim
|
install neovim
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p "$XDG_DATA_HOME/nvim/backup"
|
mkdir -p "$XDG_DATA_HOME/nvim/backup"
|
||||||
plug_dir="$XDG_DATA_HOME/nvim/site/autoload"
|
plug_dir="$XDG_DATA_HOME/nvim/site/autoload"
|
||||||
|
|||||||
Reference in New Issue
Block a user