Skip to content

Commit fe030eb

Browse files
committed
🎉 (start): Initial commit
0 parents  commit fe030eb

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Bash scripts
2+
Bash scripting used in Finanssoreal Org.

docker-setup.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
if [ "$EUID" -ne 0 ]; then
4+
echo "Please run as root"
5+
exit
6+
fi
7+
8+
# Upgrade packages
9+
apt update && apt upgrade -y
10+
11+
# Install base apps
12+
apt install -y \
13+
zsh curl wget bat \
14+
build-essential git gh \
15+
fd-find ripgrep zoxide \
16+
zip unzip
17+
18+
# === Install non apt packages ===
19+
# 1.) Neovim
20+
curl -L "https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz" | tar xzf - -C /opt/
21+
ln -sf /opt/nvim-linux64/bin/nvim /usr/local/bin/nvim
22+
23+
# 2.) Lazygit
24+
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
25+
curl -L "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" | tar xzf - -C /usr/local/bin/
26+
27+
# 3.) Starship
28+
curl -fsSL https://starship.rs/install.sh | sh -s -- --yes
29+
30+
# 4.) Gitmoji
31+
npm i -g gitmoji-cli

0 commit comments

Comments
 (0)