From 9542cec9e3d68c9cef7a008d8feaef891ae9bba4 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Sat, 13 Jul 2019 00:55:52 +0200 Subject: Add arch-install and zshrc --- bin/install_GNULinux.sh | 8 ---- bin/install_arch.sh | 15 +++++++ fonts/Roboto Mono Nerd Font Complete Mono.ttf | Bin 0 -> 935792 bytes tmux.conf | 2 - zshrc | 60 ++++++++++++++++++++++++++ 5 files changed, 75 insertions(+), 10 deletions(-) delete mode 100644 bin/install_GNULinux.sh create mode 100644 bin/install_arch.sh create mode 100644 fonts/Roboto Mono Nerd Font Complete Mono.ttf create mode 100644 zshrc diff --git a/bin/install_GNULinux.sh b/bin/install_GNULinux.sh deleted file mode 100644 index 2d150d2..0000000 --- a/bin/install_GNULinux.sh +++ /dev/null @@ -1,8 +0,0 @@ -echo "Install Oh-My-Zsh" -sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - -echo "Install zsh-autosuggestions" -git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions - -echo "Install powerlevel9k" -sudo pacman -S zsh-theme-powerlevel9k diff --git a/bin/install_arch.sh b/bin/install_arch.sh new file mode 100644 index 0000000..5306ba2 --- /dev/null +++ b/bin/install_arch.sh @@ -0,0 +1,15 @@ +echo "Install Oh-My-Zsh" +sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" + +echo "Install zsh-autosuggestions" +git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions + +echo "Install powerlevel9k" +sudo pacman -S zsh-theme-powerlevel9k + +sudo pacman -S highlight atool w3m mediainfo + +ln -i zshrc ~/.zshrc + + +echo "Please install the font Roboto mono nerd, and enable it in your terminal." diff --git a/fonts/Roboto Mono Nerd Font Complete Mono.ttf b/fonts/Roboto Mono Nerd Font Complete Mono.ttf new file mode 100644 index 0000000..c5de777 Binary files /dev/null and b/fonts/Roboto Mono Nerd Font Complete Mono.ttf differ diff --git a/tmux.conf b/tmux.conf index f62ceb9..5abfeb1 100644 --- a/tmux.conf +++ b/tmux.conf @@ -26,5 +26,3 @@ setw -g monitor-activity on set -g visual-activity on set-window-option -g window-status-current-bg yellow - - diff --git a/zshrc b/zshrc new file mode 100644 index 0000000..e6c60fd --- /dev/null +++ b/zshrc @@ -0,0 +1,60 @@ +# If you come from bash you might have to change your $PATH. +# export PATH=$HOME/bin:/usr/local/bin:$PATH + +export ZSH="/home/jakob/.oh-my-zsh" + +ZSH_THEME="powerlevel9k/powerlevel9k" + +export UPDATE_ZSH_DAYS=30 + +# Uncomment the following line to enable command auto-correction. +# ENABLE_CORRECTION="true" + +COMPLETION_WAITING_DOTS="true" + +plugins=( + git + zsh-autosuggestions + zsh-syntax-highlighting +) + +source $ZSH/oh-my-zsh.sh + +# User configuration + +# You may need to manually set your language environment +# export LANG=en_US.UTF-8 +DEFAULT_USER="jakob" + +# POWERLINE9K +POWERLEVEL9K_MODE="nerdfont-complete" + +POWERLINE9K_PROMPT_ADD_NEWLINE=true + +POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs) +POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs) + +POWERLEVEL9K_SHORTEN_STRATERGY="truncate_to_last" +POWERLEVEL9K_SHORTEN_DIR_LENGTH=2 +POWERLEVEL9K_DIR_SHOW_WRITABLE=true + +# Powerline color config +POWERLEVEL9K_STATUS_OK_BACKGROUND='004' +POWERLEVEL9K_STATUS_OK_FOREGROUND='015' +POWERLEVEL9K_STATUS_ERROR_BACKGROUND='001' +POWERLEVEL9K_STATUS_ERROR_FOREGROUND='015' + +# Powerline icon config +POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\UE0B8' +POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\UE0BE' + +POWERLEVEL9K_HOME_ICON='\UF7DB' +POWERLEVEL9K_HOME_SUB_ICON='\UF07C' +POWERLEVEL9K_FOLDER_ICON='\UF07B' +POWERLEVEL9K_ETC_ICON='\UE5FC' +POWERLEVEL9K_LOCK_ICON='\UF023' + +POWERLEVEL9K_VCS_UNSTAGED_ICON='\UF421' +POWERLEVEL9K_VCS_STAGED='\UF055' +POWERLEVEL9K_VCS_UNTRACKED_ICON='\UF059' +POWERLEVEL9K_VCS_BRANCH_ICON='\UE725 ' -- cgit v1.2.3