Skip to content

Commit a148139

Browse files
authored
Merge pull request #423 from basecamp/add-windsurf-editor
Add windsurf editor
2 parents b917189 + 3f225f4 commit a148139

File tree

6 files changed

+42
-9
lines changed

6 files changed

+42
-9
lines changed

Diff for: bin/omakub

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/bin/bash
22

3-
source $OMAKUB_PATH/ascii.sh
4-
echo "" # Add spacing
5-
echo " $(cat $OMAKUB_PATH/version)"
6-
echo "" # Add spacing
3+
source $OMAKUB_PATH/bin/omakub-sub/header.sh
74
source $OMAKUB_PATH/bin/omakub-sub/menu.sh

Diff for: bin/omakub-sub/header.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
source $OMAKUB_PATH/ascii.sh
4+
echo "" # Add spacing
5+
echo " $(cat $OMAKUB_PATH/version)"
6+
echo "" # Add spacing

Diff for: bin/omakub-sub/install-dev-editor.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
CHOICES=(
2+
"Cursor AI Code Editor"
3+
"Doom Emacs Emacs framework with curated list of packages"
4+
"RubyMine IntelliJ's commercial Ruby editor"
5+
"Windsurf Another AI Code Editor"
6+
"Zed Fast all-purpose editor"
7+
"<< Back "
8+
)
9+
10+
CHOICE=$(gum choose "${CHOICES[@]}" --height 8 --header "Install editor")
11+
12+
if [[ "$CHOICE" == "<< Back"* ]] || [[ -z "$CHOICE" ]]; then
13+
# Don't install anything
14+
echo ""
15+
else
16+
INSTALLER=$(echo "$CHOICE" | awk -F ' {2,}' '{print $1}' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
17+
INSTALLER_FILE="$OMAKUB_PATH/install/desktop/optional/app-$INSTALLER.sh"
18+
19+
source $INSTALLER_FILE && gum spin --spinner globe --title "Install completed!" -- sleep 3
20+
fi
21+
22+
clear
23+
source $OMAKUB_PATH/bin/omakub-sub/header.sh
24+
source $OMAKUB_PATH/bin/omakub-sub/install.sh

Diff for: bin/omakub-sub/install.sh

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
CHOICES=(
2+
"Dev Editor Install alternative programming editors"
23
"Dev Language Install programming language environment"
34
"Dev Database Install development database in Docker"
45
"1password Manage your passwords securely across devices"
56
"Audacity Record and edit audio"
67
"ASDControl Set brightness on Apple Studio and XDR displays via cli"
78
"Brave Chrome-based browser with built-in ad blocking"
8-
"Cursor The AI Code Editor"
9-
"Doom Emacs Emacs framework with curated list of packages"
109
"Dropbox Sync files across computers with ease"
1110
"Mainline Kernels Install newer Linux kernels than Ubuntu defaults"
1211
"OBS Studio Record screencasts with inputs from both display + webcam"
1312
"Ollama Run LLMs, like Meta's Llama3, locally"
14-
"RubyMine IntelliJ's commercial Ruby editor"
1513
"Scrcpy Android screen mirroring (requires dev mode / USB debug on!)"
1614
"Spotify Stream music from the world's most popular service"
1715
"Steam Play games from Valve's store"
1816
"VirtualBox Virtual machines to run Windows/Linux"
19-
"Zed Fast all-purpose editor"
2017
"Zoom Attend and host video chat meetings"
2118
"> All Re-run any of the default installers"
2219
"<< Back "
2320
)
2421

25-
CHOICE=$(gum choose "${CHOICES[@]}" --height 23 --header "Install application")
22+
CHOICE=$(gum choose "${CHOICES[@]}" --height 20 --header "Install application")
2623

2724
if [[ "$CHOICE" == "<< Back"* ]] || [[ -z "$CHOICE" ]]; then
2825
# Don't install anything
@@ -38,6 +35,7 @@ else
3835
INSTALLER=$(echo "$CHOICE" | awk -F ' {2,}' '{print $1}' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
3936

4037
case "$INSTALLER" in
38+
"dev-editor") INSTALLER_FILE="$OMAKUB_PATH/bin/omakub-sub/install-dev-editor.sh" ;;
4139
"dev-language") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-language.sh" ;;
4240
"dev-database") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-storage.sh" ;;
4341
"ollama") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/optional/app-ollama.sh" ;;

Diff for: install/desktop/optional/app-windsurf.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
curl -fsSL "https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/windsurf.gpg" | sudo gpg --dearmor -o /usr/share/keyrings/windsurf-stable-archive-keyring.gpg
2+
echo "deb [signed-by=/usr/share/keyrings/windsurf-stable-archive-keyring.gpg arch=amd64] https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt stable main" | sudo tee /etc/apt/sources.list.d/windsurf.list >/dev/null
3+
4+
sudo apt update -y
5+
sudo apt install -y windsurf

Diff for: uninstall/app-windsurf.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sudo apt purge -y windsurf
2+
sudo rm /etc/apt/sources.list.d/windsurf.list
3+
sudo rm /usr/share/keyrings/windsurf-stable-archive-keyring.gpg

0 commit comments

Comments
 (0)