summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrafa_99 <rafa99@protonmail.com>2021-01-30 16:13:33 +0000
committerrafa_99 <rafa99@protonmail.com>2021-01-30 16:13:33 +0000
commit536a3a9a704e545061b5e18d4a6c0a14d706bc1d (patch)
treeaf681c80cc0d3cae1c06508c1be849aba08344ac
parent3686c238f0ae206370d1376f5368e6cc0fc78df5 (diff)
Starting Develop Parabola rice and Updated ZSH Prompt
-rw-r--r--INSTALL/arch-install2
-rw-r--r--INSTALL/artix-install2
-rw-r--r--INSTALL/gentoo-install2
-rw-r--r--INSTALL/parabola-install71
-rw-r--r--misc/.config/misc/aliasrc4
-rw-r--r--zsh/.config/zsh/.zshrc5
-rw-r--r--zsh/.config/zsh/prompt/agnoster.zsh-theme (renamed from zsh/.config/zsh/agnoster.zsh-theme)0
-rw-r--r--zsh/.config/zsh/prompt/nicoulaj.zsh-theme43
8 files changed, 122 insertions, 7 deletions
diff --git a/INSTALL/arch-install b/INSTALL/arch-install
index 3bc7476..76d0a08 100644
--- a/INSTALL/arch-install
+++ b/INSTALL/arch-install
@@ -22,7 +22,7 @@ sudo cp -rf ROOT/hosts/hosts /etc
sudo pacman -Rnsc vim
# Install Required Programs
-sudo pacman --needed -Syu stow opendoas zsh youtube-dl engrampa ncmpcpp xwallpaper newsboat vifm zathura maim ffmpeg texlive-most pcmanfm lxappearance ntp redshift numlockx htop xclip imagemagick transmission-gtk neovim mpv mpd mpc sxiv zathura-pdf-mupdf zathura-ps python-pywal pandoc automake lzop zip curl make bc android-tools gimp audacity kdenlive frei0r-plugins inkscape unzip unarchiver arandr shellcheck arc-gtk-theme ctags unoconv picom nodejs yarn p7zip gzip tar xz papirus-icon-theme lsd valgrind doxygen gdb light pulsemixer pavucontrol xorg-server xorg-xinit go qt5ct wine-staging wine-mono wine-gecko winetricks giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader lutris hplip simple-scan system-config-printer xorg gst-plugins-good grc gst-libav clang breeze net-tools ueberzug ffmpegthumbnailer
+sudo pacman --needed -Syu stow opendoas zsh youtube-dl engrampa ncmpcpp xwallpaper newsboat vifm zathura maim ffmpeg texlive-most pcmanfm lxappearance ntp redshift numlockx htop xclip imagemagick transmission-gtk neovim mpv mpd mpc sxiv zathura-pdf-mupdf zathura-ps python-pywal pandoc automake lzop zip curl make bc android-tools gimp audacity kdenlive frei0r-plugins inkscape unzip unarchiver arandr shellcheck arc-gtk-theme ctags unoconv picom nodejs yarn p7zip gzip tar xz papirus-icon-theme valgrind doxygen gdb light pulsemixer pavucontrol xorg-server xorg-xinit go qt5ct wine-staging wine-mono wine-gecko winetricks giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader lutris hplip simple-scan system-config-printer xorg gst-plugins-good grc gst-libav clang breeze net-tools ueberzug ffmpegthumbnailer torbrowser-launcher
# Computer Science Programs
# bluej netbeans jdk11-openjdk java11-openjfx intellij-idea-community-edition valgrind doxygen gdb mysql-workbench octave
diff --git a/INSTALL/artix-install b/INSTALL/artix-install
index fc2ca6d..81adac8 100644
--- a/INSTALL/artix-install
+++ b/INSTALL/artix-install
@@ -22,7 +22,7 @@ sudo cp -rf ROOT/hosts/hosts /etc
sudo pacman -Rnsc vim
# Install Required Programs
-sudo pacman --needed -Syu stow opendoas zsh youtube-dl engrampa ncmpcpp xwallpaper newsboat vifm zathura maim ffmpeg texlive-most pcmanfm lxappearance ntp redshift numlockx htop xclip imagemagick transmission-gtk neovim mpv mpd mpc sxiv zathura-pdf-mupdf zathura-ps python-pywal pandoc automake lzop zip curl make bc android-tools gimp audacity kdenlive frei0r-plugins inkscape unzip unarchiver arandr shellcheck arc-gtk-theme ctags unoconv picom nodejs yarn p7zip gzip tar xz papirus-icon-theme lsd valgrind doxygen gdb light pulsemixer pavucontrol xorg-server xorg-xinit go qt5ct artix-dark-theme wine-staging wine-mono wine-gecko winetricks giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader lutris hplip simple-scan cups-openrc system-config-printer xorg gst-plugins-good grc gst-libav avahi-openrc clang breeze net-tools ueberzug ffmpegthumbnailer
+sudo pacman --needed -Syu stow opendoas zsh youtube-dl engrampa ncmpcpp xwallpaper newsboat vifm zathura maim ffmpeg texlive-most pcmanfm lxappearance ntp redshift numlockx htop xclip imagemagick transmission-gtk neovim mpv mpd mpc sxiv zathura-pdf-mupdf zathura-ps python-pywal pandoc automake lzop zip curl make bc android-tools gimp audacity kdenlive frei0r-plugins inkscape unzip unarchiver arandr shellcheck arc-gtk-theme ctags unoconv picom nodejs yarn p7zip gzip tar xz papirus-icon-theme valgrind doxygen gdb light pulsemixer pavucontrol xorg-server xorg-xinit go qt5ct artix-dark-theme wine-staging wine-mono wine-gecko winetricks giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader lutris hplip simple-scan cups-openrc system-config-printer xorg gst-plugins-good grc gst-libav avahi-openrc clang breeze net-tools ueberzug ffmpegthumbnailer torbrowser-launcher
# Adding System default init services
doas rc-update add cupsd default
diff --git a/INSTALL/gentoo-install b/INSTALL/gentoo-install
index 9633914..0a77205 100644
--- a/INSTALL/gentoo-install
+++ b/INSTALL/gentoo-install
@@ -27,7 +27,7 @@ if [ "$(id -u)" = "0" ]; then
printf "Do you want to install Extra Packages? [Y/n]" && read -r EXTRA
if [ "$EXTRA" != "N" ] && [ "$EXTRA" != "n" ]; then
FEATURES="splitdebug" emerge --oneshot sys-libs/glibc
- emerge --ask --quiet sxiv mpv youtube-dl ncmpcpp media-sound/mpc mpd ntfs3g redshift numlockx pandoc android-tools shellcheck app-admin/system-config-printer texlive-latex texlive-latexextra texlive-latexrecommended net-libs/nodejs libreoffice-bin unoconv dev-util/ctags gimp imagemagick lsd picom net-misc/ntp maim net-libs/webkit-gtk media-libs/gst-plugins-good media-plugins/gst-plugins-libav latex-beamer go sys-apps/net-tools && poweroff
+ emerge --ask --quiet sxiv mpv youtube-dl ncmpcpp media-sound/mpc mpd ntfs3g redshift numlockx pandoc android-tools shellcheck app-admin/system-config-printer texlive-latex texlive-latexextra texlive-latexrecommended net-libs/nodejs libreoffice-bin unoconv dev-util/ctags gimp imagemagick picom net-misc/ntp maim net-libs/webkit-gtk media-libs/gst-plugins-good media-plugins/gst-plugins-libav latex-beamer go sys-apps/net-tools && poweroff
fi
printf "Do you want to install Extra Packages? [Y/n]" && read -r USERPACKAGES
diff --git a/INSTALL/parabola-install b/INSTALL/parabola-install
new file mode 100644
index 0000000..a28cec3
--- /dev/null
+++ b/INSTALL/parabola-install
@@ -0,0 +1,71 @@
+#!/bin/sh
+
+#
+# Parabola dots install
+#
+
+cd .. || exit
+CURDIR=$(pwd)
+
+echo "######################"
+echo "# dotfiles Installer #"
+echo "######################"
+echo "| Parabola Linux |"
+echo "**********************"
+
+# Adding Root Files
+doas cp -rf ROOT/doas/doas.conf /etc
+doas cp -rf ROOT/issue/issue /etc
+doas cp -rf ROOT/hosts/hosts /etc
+#
+# # Remove Vim if Present
+doas pacman -Rnsc vim
+
+# Install Required Programs
+doas pacman --needed -Syu stow opendoas zsh youtube-dl engrampa ncmpcpp xwallpaper newsboat vifm zathura maim texlive-most ffmpeg pcmanfm lxappearance ntp redshift numlockx htop xclip imagemagick transmission-gtk neovim mpv mpd mpc sxiv zathura-pdf-mupdf zathura-ps python-pywal pandoc automake lzop zip curl make bc android-tools gimp audacity kdenlive frei0r-plugins inkscape unzip unarchiver arandr shellcheck arc-gtk-theme ctags unoconv picom nodejs yarn p7zip gzip tar xz papirus-icon-theme valgrind doxygen gdb light pulsemixer pavucontrol xorg-server xorg-xinit go qt5ct ncurses gtk3 gst-plugins-base-libs hplip simple-scan cups-openrc system-config-printer gst-plugins-good grc gst-libav avahi-openrc clang breeze net-tools ueberzug ffmpegthumbnailer webkit2gtk torbrowser-launcher
+
+# Adding System default init services
+doas rc-update add cupsd default
+
+# Computer Science Programs
+# bluej netbeans jdk11-openjdk java11-openjfx intellij-idea-community-edition valgrind doxygen gdb mysql-workbench octave
+
+# Building Folder Structure
+mkdir -p ~/Documents/PDF ~/Documents/Markdown ~/Documents/Disks ~/Documents/Archives ~/Documents/VMs ~/Downloads ~/Games/WINEPREFIX ~/Pictures/Screenshots ~/Pictures/GIMP ~/Videos/Recordings ~/Source ~/.config/git ~/.config/gnupg ~/.config/wallpaper ~/.config/X11 ~/Mount
+
+touch ~/.config/X11/Xauthority
+touch ~/.xprofile
+doas sh -c 'echo "export _JAVA_AWT_WM_NONREPARENTING=1" >>/etc/profile.d/jre.sh'
+chsh -s /bin/zsh
+
+# Deploy Dots
+stow --target="$HOME" fonts gtk misc mpd ncmpcpp newsboat nvim qt shell scripts suckless sxiv vifm X11 zathura zsh
+
+cd ~/.local/src/suck && sh sucklessUpdate && cd "$CURDIR" || exit
+
+# Setting up Neovim
+## Linking Neovim to Vim
+ln -s /usr/bin/nvim ~/.local/bin/vim
+
+## Installing Neovim Plugin Manager (Vim Plug)
+curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
+ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+
+## Installing Plugins
+nvim -c PlugInstall
+cd ~/.config/nvim/plugged/vim-hexokinase && make hexokinase
+
+# Setup Git account
+printf "Do yo want to setup Git account? [Y/n]" && read -r GIT
+if [ "$GIT" != "N" ] && [ "$GIT" != "n" ]; then
+ printf "Username: " && read -r USER
+ printf "Email: " && read -r EMAIL
+ git config --global user.name "$USER"
+ git config --global user.email "$EMAIL"
+ git config pull.rebase false
+ mv ~/.gitconfig ~/.config/git/config
+ git config --global pull.rebase false
+fi
+
+# Wallpapers
+cd ~/Pictures && git clone https://gitlab.com/rafa_99/wallpapers
diff --git a/misc/.config/misc/aliasrc b/misc/.config/misc/aliasrc
index d2517c3..81bf264 100644
--- a/misc/.config/misc/aliasrc
+++ b/misc/.config/misc/aliasrc
@@ -1,7 +1,7 @@
#!bin/sh
-alias ls='lsd' \
- grep='grep --color=auto -i' \
+alias grep='grep --color=auto -i' \
+ ls='ls --color=auto' \
clone='git clone' \
add='git add' \
stat='git status' \
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index 694364d..3cd3b5b 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -6,10 +6,11 @@ setopt prompt_subst autocd
# End of lines configured by zsh-newuser-install
# Autoload Extensions
## Autocompletion Menu
-autoload -U compinit
+autoload -Uz compinit promptinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
+promptinit
_comp_options+=(globdots) # Include hidden files.
## Vi mode
@@ -27,6 +28,6 @@ autoload edit-command-line; zle -N edit-command-line
bindkey '^e' edit-command-line
## Source Files
-source "$HOME"/.config/zsh/agnoster.zsh-theme
+source "$HOME"/.config/zsh/prompt/nicoulaj.zsh-theme
source "$HOME"/.config/zsh/zsh-syntax-highlighting.zsh
[ -f "$HOME/.config/misc/aliasrc" ] && source "$HOME/.config/misc/aliasrc"
diff --git a/zsh/.config/zsh/agnoster.zsh-theme b/zsh/.config/zsh/prompt/agnoster.zsh-theme
index d156340..d156340 100644
--- a/zsh/.config/zsh/agnoster.zsh-theme
+++ b/zsh/.config/zsh/prompt/agnoster.zsh-theme
diff --git a/zsh/.config/zsh/prompt/nicoulaj.zsh-theme b/zsh/.config/zsh/prompt/nicoulaj.zsh-theme
new file mode 100644
index 0000000..683b595
--- /dev/null
+++ b/zsh/.config/zsh/prompt/nicoulaj.zsh-theme
@@ -0,0 +1,43 @@
+#!/usr/bin/env zsh
+# ------------------------------------------------------------------------------
+# Prompt for the Zsh shell:
+# * One line.
+# * VCS info on the right prompt.
+# * Only shows the path on the left prompt by default.
+# * Crops the path to a defined length and only shows the path relative to
+# the current VCS repository root.
+# * Wears a different color wether the last command succeeded/failed.
+# * Shows user@hostname if connected through SSH.
+# * Shows if logged in as root or not.
+# ------------------------------------------------------------------------------
+
+# Customizable parameters.
+PROMPT_PATH_MAX_LENGTH=30
+PROMPT_DEFAULT_END=\ 
+PROMPT_ROOT_END=❯❯❯
+PROMPT_SUCCESS_COLOR=$FG[071]
+PROMPT_FAILURE_COLOR=$FG[124]
+PROMPT_VCS_INFO_COLOR=$FG[242]
+
+# Set required options.
+setopt promptsubst
+
+# Load required modules.
+autoload -U add-zsh-hook
+autoload -Uz vcs_info
+
+# Add hook for calling vcs_info before each command.
+add-zsh-hook precmd vcs_info
+
+# Set vcs_info parameters.
+zstyle ':vcs_info:*' enable hg bzr git
+zstyle ':vcs_info:*:*' check-for-changes true # Can be slow on big repos.
+zstyle ':vcs_info:*:*' unstagedstr ''
+zstyle ':vcs_info:*:*' stagedstr ''
+zstyle ':vcs_info:*:*' actionformats "%S" "%r/%s/%b %u%c (%a)"
+zstyle ':vcs_info:*:*' formats "%S" "%r/%s/%b %u%c"
+zstyle ':vcs_info:*:*' nvcsformats "%~" ""
+
+# Define prompts.
+PROMPT="%(0?.%{$PROMPT_SUCCESS_COLOR%}.%{$PROMPT_FAILURE_COLOR%})${SSH_TTY:+[%n@%m]}%{$FX[bold]%}%$PROMPT_PATH_MAX_LENGTH<..<"'${vcs_info_msg_0_%%.}'"%<<%(!.$PROMPT_ROOT_END.$PROMPT_DEFAULT_END)%{$FX[no-bold]%}%{$FX[reset]%} "
+RPROMPT=" $(date +%T) %{$PROMPT_VCS_INFO_COLOR%}"'$vcs_info_msg_1_'"%{$FX[reset]%}"