Organisation
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
install/.state
|
||||||
@@ -3,9 +3,8 @@
|
|||||||
|
|
||||||
## Install
|
## Install
|
||||||
```
|
```
|
||||||
git clone https://github.com/andrejusk/dotfiles.git ~/git/dotfiles
|
git clone https://github.com/andrejusk/dotfiles.git ~/workspace/dotfiles
|
||||||
cd ~/git/dotfiles/install-scripts
|
sudo sh ~/workspace/dotfiles/setup.sh
|
||||||
bash ./setup.sh
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|||||||
1
install/00-setup.sh
Normal file
1
install/00-setup.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
touch $state_dir
|
||||||
7
install/01-apt.sh
Normal file
7
install/01-apt.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
GREY='\033[0;37m'
|
||||||
|
NC='\033[0m'
|
||||||
|
echo "${GREY}andrejusk/dotfiles/apt${NC}"
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get upgrade -y
|
||||||
16
install/02-fish.sh
Normal file
16
install/02-fish.sh
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
GREY='\033[0;37m'
|
||||||
|
NC='\033[0m'
|
||||||
|
echo "${GREY}andrejusk/dotfiles/fish${NC}"
|
||||||
|
|
||||||
|
|
||||||
|
if grep -q SomeString "$File"; then
|
||||||
|
|
||||||
|
elif
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
sudo apt-add-repository ppa:fish-shell/release-3
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install fish
|
||||||
1
install/10-setup.sh
Normal file
1
install/10-setup.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#
|
||||||
27
install/11-docker.sh
Normal file
27
install/11-docker.sh
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
GREY='\033[0;37m'
|
||||||
|
NC='\033[0m'
|
||||||
|
echo "${GREY}andrejusk/dotfiles/docker${NC}"
|
||||||
|
|
||||||
|
if grep -q SomeString "$File"; then
|
||||||
|
|
||||||
|
elif
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
sudo apt-get install \
|
||||||
|
apt-transport-https \
|
||||||
|
ca-certificates \
|
||||||
|
curl \
|
||||||
|
gnupg-agent \
|
||||||
|
software-properties-common
|
||||||
|
|
||||||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||||
|
sudo apt-key fingerprint 0EBFCD88
|
||||||
|
|
||||||
|
sudo add-apt-repository \
|
||||||
|
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
||||||
|
$(lsb_release -cs) \
|
||||||
|
stable"
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get upgrade -y
|
|
||||||
@@ -1,38 +1,38 @@
|
|||||||
# start
|
# # start
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
# export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
|
||||||
# set up
|
# # set up
|
||||||
ln -s /mnt/c/git ~/git
|
# ln -s /mnt/c/git ~/git
|
||||||
|
|
||||||
|
|
||||||
# # # shell
|
# # # # shell
|
||||||
|
|
||||||
# apt
|
# # apt
|
||||||
# brew
|
# # brew
|
||||||
yes '' | sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
|
# yes '' | sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
|
||||||
echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >>~/.profile
|
# echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >>~/.profile
|
||||||
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
# eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
||||||
sudo apt-get install build-essential
|
# sudo apt-get install build-essential
|
||||||
brew install gcc
|
# brew install gcc
|
||||||
|
|
||||||
# zsh
|
# # zsh
|
||||||
sudo apt install zsh -y
|
# sudo apt install zsh -y
|
||||||
sudo apt-get install powerline fonts-powerline -y
|
# sudo apt-get install powerline fonts-powerline -y
|
||||||
|
|
||||||
# oh my zsh
|
# # oh my zsh
|
||||||
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
# sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||||
|
|
||||||
# highlighting
|
# # highlighting
|
||||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1
|
# git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1
|
||||||
echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"
|
# echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"
|
||||||
|
|
||||||
# spaceship
|
# # spaceship
|
||||||
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
|
# git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
|
||||||
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
|
# ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
|
||||||
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="spaceship"/g' ~/.zshrc
|
# sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="spaceship"/g' ~/.zshrc
|
||||||
|
|
||||||
|
|
||||||
# cleanup
|
# # cleanup
|
||||||
sudo apt autoremove -y
|
# sudo apt autoremove -y
|
||||||
export DEBIAN_FRONTEND=readline
|
# export DEBIAN_FRONTEND=readline
|
||||||
|
|||||||
Reference in New Issue
Block a user