Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions configuration_zsh/zsh_setup_configs.sh

This file was deleted.

3 changes: 2 additions & 1 deletion pyscripts/s04_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def install_packages(user_input, install_user_name):
'unrar',
'fortune-mod',
'reflector',
'tree']
'tree',
'prezto-git']
packages = {
'minimal': {
'desktop' : [],
Expand Down
20 changes: 5 additions & 15 deletions pyscripts/s13_shell.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import fileinput
from shutil import copy2
from subprocess import CalledProcessError
Expand All @@ -15,30 +16,19 @@ def configure_shell():
### Install zsh and configure
print(" >> Installing zsh with prezto")

### Clone the Prezto files
run("git clone --recursive https://github.com/sorin-ionescu/prezto.git /mnt/etc/skel/.zprezto")

### Set correct theme
# sed -i "s|theme '<replace>'|theme '$USER_ZSH_THEME'|g" arch-installer/configuration_zsh/zpreztorc

### Copy them into the user's folder
run("zsh arch-installer/configuration_zsh/zsh_setup_configs.sh")

### Copy prompt theme and .zpreztorc over
copy2("arch-installer/configuration_zsh/zshrc", "/mnt/etc/skel/.zshrc")
copy2("arch-installer/configuration_zsh/zpreztorc", "/mnt/etc/skel/.zpreztorc")
copy2("arch-installer/configuration_zsh/prompt_plasmon_setup", "/mnt/etc/skel/.zprezto/modules/prompt/functions/")

### Add powerline fonts to display prezto symbols
print(" >> Installing powerline fonts")
run("git clone https://github.com/powerline/fonts")
run("export HOME='/mnt/etc/skel' && zsh ./fonts/install.sh")
directory = "/mnt/etc/skel/.zprezto/modules/prompt/functions/"
if not os.path.exists(directory):
os.makedirs(directory)

copy2("arch-installer/configuration_zsh/prompt_plasmon_setup", directory)

### Copy Vim-config
copy2("arch-installer/configuration_zsh/.vimrc", "/mnt/etc/skel/")


### Change the default shell
print(" >> Changing default shell to zsh")
sed_inplace("/mnt/etc/default/useradd", "SHELL=/bin/bash", "SHELL=/bin/zsh")