Browse Source

fonts and options

master
Juni Kim 2 years ago
parent
commit
ff53387940
  1. 4
      dots/zshrc
  2. 28
      install_fedora.sh
  3. 29
      install_ubuntu.sh

4
dots/zshrc

@ -122,13 +122,13 @@ alias sy='systemctl'
export MT_EDITOR=nvim export MT_EDITOR=nvim
export VISUAL=nvim export VISUAL=nvim
export WORKSPACES=$HOME/Documents
f() { f() {
fff "$@" fff "$@"
cd "$(cat "${XDG_CACHE_HOME:=${HOME}/.cache}/fff/.fff_d")" cd "$(cat "${XDG_CACHE_HOME:=${HOME}/.cache}/fff/.fff_d")"
} }
bindkey -s "^s" "school\n"
bindkey -s "^t" "~/.local/bin/tmuxs\n"
bindkey -s "^p" "~/.local/bin/tmuxs\n"
#export TERM=linux #export TERM=linux
export EDITOR=nvim export EDITOR=nvim

28
install_fedora.sh

@ -78,6 +78,15 @@ neovim() {
nvim -c 'sleep 40' -c qa --headless nvim -c 'sleep 40' -c qa --headless
} }
neovim_fonts() {
sudo apt install fonts-jetbrains-mono
mkdir -p "$HOME/.local/share/fonts/JB"
cd "$HOME/.local/share/fonts/JB" || exit 1
curl -LJO https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/JetBrainsMono.zip || exit 1
unzip JetBrainsMono.zip || exit 1
fc-cache -rv || exit 1
}
competitiveprogramming() { competitiveprogramming() {
echo "CP Compilers..." echo "CP Compilers..."
sudo dnf install -y clang clang-tools-extra sudo dnf install -y clang clang-tools-extra
@ -85,8 +94,23 @@ competitiveprogramming() {
git clone https://git.junickim.me/junikimm717/linuxcp "$HOME/cp" git clone https://git.junickim.me/junikimm717/linuxcp "$HOME/cp"
} }
#(dependencies && sysinfo && browsers && torbrowser && meetings && dotfiles && neovim) || exit 1
(dependencies && sysinfo && dotfiles && neovim) || exit 1
case "$1" in
ssh|s)
(dependencies && sysinfo && dotfiles && neovim) || exit 1
;;
graphical|g)
(dependencies && sysinfo && browsers && dotfiles && neovim && neovim_fonts && popshell) || exit 1
;;
full|f)
(dependencies && sysinfo && browsers && torbrowser && meetings && dotfiles && neovim && neovim_fonts && popshell) || exit 1
;;
cp|c)
(dependencies && sysinfo && browsers && dotfiles && neovim && neovim_fonts && competitiveprogramming && popshell) || exit 1
;;
*)
echo "First Argument should be one of ssh, graphical, full, or cp"
;;
esac
cat <<EOF cat <<EOF
Stuff to do: Stuff to do:

29
install_ubuntu.sh

@ -83,7 +83,7 @@ meetings() {
dotfiles() { dotfiles() {
echo "Adding zsh and tmux configs" echo "Adding zsh and tmux configs"
# zsh plugins # zsh plugins
sudo apt install -y zsh
sudo apt install -y zsh tmux shellcheck fzf
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting" git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
# dotfiles # dotfiles
@ -109,6 +109,14 @@ neovim() {
nvim -c 'sleep 60' -c qa --headless nvim -c 'sleep 60' -c qa --headless
} }
neovim_fonts() {
mkdir -p "$HOME/.local/share/fonts/UM"
cd "$HOME/.local/share/fonts/UM" || exit 1
curl -LJO https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/UbuntuMono.zip || exit 1
unzip UbuntuMono.zip || exit 1
fc-cache -rv || exit 1
}
competitiveprogramming() { competitiveprogramming() {
echo "CP Compilers..." echo "CP Compilers..."
sudo apt install clang clang-tools-extra sudo apt install clang clang-tools-extra
@ -116,8 +124,23 @@ competitiveprogramming() {
git clone https://git.junickim.me/junikimm717/linuxcp "$HOME/cp" git clone https://git.junickim.me/junikimm717/linuxcp "$HOME/cp"
} }
#(dependencies && sysinfo && browsers && torbrowser && meetings && dotfiles && neovim) || exit 1
(dependencies && sysinfo && dotfiles && neovim) || exit 1
case "$1" in
ssh|s)
(dependencies && sysinfo && dotfiles && neovim) || exit 1
;;
graphical|g)
(dependencies && sysinfo && browsers && dotfiles && neovim && neovim_fonts && popshell) || exit 1
;;
full|f)
(dependencies && sysinfo && browsers && torbrowser && meetings && dotfiles && neovim && neovim_fonts && popshell) || exit 1
;;
cp|c)
(dependencies && sysinfo && browsers && dotfiles && neovim && neovim_fonts && competitiveprogramming && popshell) || exit 1
;;
*)
echo "First Argument should be one of ssh, graphical, full, or cp"
;;
esac
cat <<EOF cat <<EOF
Stuff to do: Stuff to do:

Loading…
Cancel
Save