Pārlūkot izejas kodu

Fish bootstrapping

master
Victor Berger pirms 7 gadiem
vecāks
revīzija
95d7101592
6 mainītis faili ar 43 papildinājumiem un 1 dzēšanām
  1. +0
    -1
      .config/fish/fishfile
  2. +2
    -0
      .config/omf/bundle
  3. +1
    -0
      .config/omf/channel
  4. +0
    -0
      .config/omf/init.fish
  5. +1
    -0
      .config/omf/theme
  6. +39
    -0
      .yadm/bootstrap

+ 0
- 1
.config/fish/fishfile Parādīt failu

@@ -1 +0,0 @@
oh-my-fish/theme-bobthefish

+ 2
- 0
.config/omf/bundle Parādīt failu

@@ -0,0 +1,2 @@
theme bobthefish
theme default

+ 1
- 0
.config/omf/channel Parādīt failu

@@ -0,0 +1 @@
stable

.config/fish/config.fish → .config/omf/init.fish Parādīt failu


+ 1
- 0
.config/omf/theme Parādīt failu

@@ -0,0 +1 @@
bobthefish

+ 39
- 0
.yadm/bootstrap Parādīt failu

@@ -0,0 +1,39 @@
#!/bin/sh

RED='\033[0;31m'
GREEN='\033[0;32m'
CYAN='\033[0;36m'
NC='\033[0m'

info() {
echo -e "${CYAN}$1${NC}"
}

error() {
echo -e "${RED}$1${NC}"
exit 1
}

success() {
echo -e "${RED}$1${NC}"
}

# Fish configuration
info "Checking for fish shell..."
which fish 2> /dev/null
fish_found=$?
if [ $fish_found -eq 0 ];
then
success "Fish shell found."
info " -> Installing virtualfish..."
pip install --user virtualfish || error "!! Failed to install virtualfish"
info " -> Installing oh-my-fish..."
curl -L https://get.oh-my.fish > install || error "!! Failed to download oh-my-fish installer"
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install.sha256 > install.sha256 || error "!! Failed to download oh-my-fish checksum"
sha256sum -c install.sha256 || error "!! Checksum failed for oh-my-fish."
fish install --noninteractive || error "!! Install failed for oh-my-fish."
fish -c 'omf install' || error "!! Oh-my-fish failed to install some packages"
success "Successfully configured fish"
else
info "No fish shell available, skipping."
fi

Notiek ielāde…
Atcelt
Saglabāt