BIG UPDATE: shell: add profile, move calc and mkcd to files, move
shell-independent config (aliases, functions, env vars, options) to .config/shell/shrc, make bashrc and zshrc use the same shrc, add TTY detection for changing caps lock to escape in a TTY, add option for skipping plugin loading, and maybe a few other things If this goes well, I'll be tempted to call this version 1.0. Things have been very stable for the last few months. Although, since it's the first really big change in a while, that might make it version 2.0? Should dotfiles have big version numbers at all? Probably not.
This commit is contained in:
parent
4241c6ef05
commit
f5e15cacde
6 changed files with 209 additions and 94 deletions
14
.bashrc
14
.bashrc
|
@ -5,8 +5,13 @@
|
|||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
alias q=exit
|
||||
# Just in case
|
||||
export SHELL_CONFIG_DIR="${SHELL_CONFIG_DIR:-"${XDG_CONFIG_HOME:-"$HOME/.config"}/shell"}"
|
||||
|
||||
# Source standard shell configuration
|
||||
[ -f "$SHELL_CONFIG_DIR/shrc" ] && source "$SHELL_CONFIG_DIR/shrc"
|
||||
|
||||
### Manjaro default bashrc >>>
|
||||
colors() {
|
||||
local fgc bgc vals seq0
|
||||
|
||||
|
@ -78,10 +83,6 @@ if ${use_color} ; then
|
|||
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
|
||||
fi
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --colour=auto'
|
||||
alias egrep='egrep --colour=auto'
|
||||
alias fgrep='fgrep --colour=auto'
|
||||
else
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
# show root@ when we don't have colors
|
||||
|
@ -140,3 +141,6 @@ ex ()
|
|||
echo "'$1' is not a valid file"
|
||||
fi
|
||||
}
|
||||
# <<<
|
||||
|
||||
# vim:fdm=marker:fmr=>>>,<<<:et:ft=bash:sw=3:ts=3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue