1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

changing shellconfig directories for better structure

This commit is contained in:
tiynger
2019-10-03 17:23:39 +02:00
parent bddb9d4ead
commit 65ebf8ec23
7 changed files with 103 additions and 2 deletions

19
.config/shell/shellrc Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -o vi
stty -ixon # Disable ctrl-s and ctrl-q.
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/shell/history
[ -f "$HOME/.config/shell/shortcutrc" ] && source "$HOME/.config/shell/shortcutrc" # Load shortcut aliases
[ -f "$HOME/.config/shell/aliasrc" ] && source "$HOME/.config/shell/aliasrc" # Load aliases
# Load options depending on current shell
if [ $(echo $0) = "/bin/zsh" ]; then
[ -f "$HOME/.config/shell/zspecific" ] && source "$HOME/.config/shell/zspecific"
fi
if [ $(echo $0) = "/bin/bash" ]; then
[ -f "$HOME/.config/shell/bashspecific" ] && source "$HOME/.config/shell/bashspecific"
fi
pfetch && echo $(vrms) | grep "non-free"