-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
58 lines (46 loc) · 1.82 KB
/
setup.sh
File metadata and controls
58 lines (46 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
set -eu
mkdir -p $HOME/.termux/
cat > /data/data/com.termux/files/usr/etc/apt/sources.list << EOF
deb https://mirrors.bfsu.edu.cn/termux/termux-packages-24 stable main
EOF
apt update
yes | apt upgrade
rm ~/files
ln -s /data/data/com.termux/files $HOME
rm -f $HOME/.hushlogin && touch $HOME/.hushlogin
cp $HOME/dotfiles/.files/termux.properties $HOME/dotfiles/.files/colors.properties $HOME/.termux/
apt install -y fish which gh nmap fzf wget curl fd nodejs
apt install -y zoxide tree htop openssh tig bat ripgrep jq yq
apt install -y curl ncdu tmux gdb neofetch proot-distro clang
apt install -y sqlite golang rust php ruby bc ffmpeg nginx chafa
apt install -y python python-pip build-essential cmake ninja gettext
apt install -y libtool autoconf automake doxygen ncurses-utils
apt install -y gperf pkg-config glow lua53 lua52 lua51 nodejs-lts
apt install -y eza pipes.sh cava starship uv luajit lua-lpeg
apt install -y gettext rust-analyzer lua-language-server yazi lld mandoc
chsh -s fish
mkdir -p $HOME/.config/
cp $HOME/dotfiles/.files/starship.toml $HOME/.config/
mkdir -p $HOME/.config/fish/
cat > $HOME/.config/fish/config.fish << EOF
set -g fish_greeting ""
termux-wake-lock
starship init fish | source
# Alias
alias ls 'eza --icons'
alias t 'eza --tree --icons'
alias a 'ls -a'
export BAT_THEME="Catppuccin Mocha"
export EDITOR="nvim"
export VISUAL="nvim"
zoxide init fish | source
export DISPALY=:0
EOF
git config --global init.defaultBranch main
mkdir -p $HOME/.config/bat/themes/
cp $HOME/dotfiles/.files/"Catppuccin Mocha.tmTheme" $HOME/.config/bat/themes/
mv $PREFIX/bin/pipes.sh $PREFIX/bin/pipes && chmod 755 $PREFIX/bin/pipes
cp $HOME/dotfiles/.files/font.ttf $HOME/dotfiles/.files/font.ttf.bak $HOME/.termux/
cp $HOME/dotfiles/.files/swap-font $PREFIX/bin/ && chmod 755 $PREFIX/bin/swap-font
pkill -9 -f com.termux # 😈