From bddb9d4ead0143ccf103051c25647616647ccd1d Mon Sep 17 00:00:00 2001 From: tiynger Date: Thu, 3 Oct 2019 17:06:10 +0200 Subject: [PATCH] add config files for zsh --- .bashrc | 12 +----------- .config/bashspecific | 2 ++ .config/shellrc | 16 ++++++++++++++++ .zshrc | 1 + 4 files changed, 20 insertions(+), 11 deletions(-) mode change 100644 => 120000 .bashrc create mode 100644 .config/bashspecific create mode 100644 .config/shellrc create mode 120000 .zshrc diff --git a/.bashrc b/.bashrc deleted file mode 100644 index b82a785..0000000 --- a/.bashrc +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -set -o vi -stty -ixon # Disable ctrl-s and ctrl-q. -shopt -s autocd #Allows you to cd into directory merely by typing the directory name. -HISTSIZE= HISTFILESIZE= # Infinite history. -export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" - -[ -f "$HOME/.config/shortcutrc" ] && source "$HOME/.config/shortcutrc" # Load shortcut aliases -[ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc" - -pfetch && echo $(vrms) | grep "non-free" diff --git a/.bashrc b/.bashrc new file mode 120000 index 0000000..080e6da --- /dev/null +++ b/.bashrc @@ -0,0 +1 @@ +.config/shellrc \ No newline at end of file diff --git a/.config/bashspecific b/.config/bashspecific new file mode 100644 index 0000000..574730d --- /dev/null +++ b/.config/bashspecific @@ -0,0 +1,2 @@ +#!/bin/bash +shopt -s autocd #Allows you to cd into directory without cd diff --git a/.config/shellrc b/.config/shellrc new file mode 100644 index 0000000..8d87e55 --- /dev/null +++ b/.config/shellrc @@ -0,0 +1,16 @@ +#!/bin/bash +set -o vi +stty -ixon # Disable ctrl-s and ctrl-q. + +[ -f "$HOME/.config/shortcutrc" ] && source "$HOME/.config/shortcutrc" # Load shortcut aliases +[ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc" # Load aliases + +# Load options depending on current shell +if [ $(echo $0) = "/bin/zsh" ]; then + [ -f "$HOME/.config/zspecific" ] && source "$HOME/.config/zspecific" +fi +if [ $(echo $0) = "/bin/bash" ]; then + [ -f "$HOME/.config/bashspecific" ] && source "$HOME/.config/bashspecific" +fi + +pfetch && echo $(vrms) | grep "non-free" diff --git a/.zshrc b/.zshrc new file mode 120000 index 0000000..080e6da --- /dev/null +++ b/.zshrc @@ -0,0 +1 @@ +.config/shellrc \ No newline at end of file