Compare commits
No commits in common. "9ccef54ca7d0d151ac44a94011d8ece8cf86877a" and "9426ffb672e0bf2eb4de094aa020d41483981c7d" have entirely different histories.
9ccef54ca7
...
9426ffb672
25
.bashrc
25
.bashrc
|
|
@ -1,6 +1,5 @@
|
||||||
#
|
#
|
||||||
# ~/.bashrc -- Sourced by bash in interactive non-login shells.
|
# ~/.bashrc -- Sourced by bash in interactive non-login shells; includes ~/bashrc.d/* and ~/.bashrc.local
|
||||||
# Includes ~/.config/bashrc.d/*
|
|
||||||
#
|
#
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
|
|
@ -10,17 +9,17 @@
|
||||||
set -o noclobber
|
set -o noclobber
|
||||||
shopt -s checkwinsize
|
shopt -s checkwinsize
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
HISTCONTROL=ignoreboth
|
export HISTCONTROL=ignoreboth
|
||||||
HISTSIZE=20000
|
export HISTSIZE=20000
|
||||||
HISTFILESIZE=20000
|
export HISTFILESIZE=20000
|
||||||
PROMPT_DIRTRIM=3
|
export PROMPT_DIRTRIM=3
|
||||||
|
|
||||||
# Save and display timestamps for history
|
# Save and display timestamps for history
|
||||||
HISTTIMEFORMAT="[%F %T] "
|
HISTTIMEFORMAT="[%F %T] "
|
||||||
|
|
||||||
# Color output and default options
|
# Color output and default options
|
||||||
GREP_OPTS='--color=auto'
|
export GREP_OPTS='--color=auto'
|
||||||
LS_OPTS='--color=auto -hFN --group-directories-first'
|
export LS_OPTS='--color=auto -hFN --group-directories-first'
|
||||||
export LESS="-Ri"
|
export LESS="-Ri"
|
||||||
|
|
||||||
# colored GCC warnings and errors
|
# colored GCC warnings and errors
|
||||||
|
|
@ -72,16 +71,14 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Include drop-in files
|
# Include drop-in files
|
||||||
if [[ -d ~/.config/bashrc.d ]]; then
|
if [[ -d ~/.bashrc.d ]]; then
|
||||||
for f in ~/.config/bashrc.d/*; do
|
for f in ~/.bashrc.d/*; do
|
||||||
[[ -f $f ]] && source "$f"
|
[[ -f $f ]] && source "$f"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Deprecation warning for old drop-in file locations
|
# Include host-specific bashrc
|
||||||
if [[ -e ~/.bashrc.d || -e ~/.bashrc.local ]]; then
|
[[ -f ~/.bashrc.local ]] && source ~/.bashrc.local
|
||||||
echo "WARNING: ~/.bashrc.d and ~/.bashrc.local are ignored, please use ~/.config/bashrc.d/ instead."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Clean up environment variables
|
# Clean up environment variables
|
||||||
unset TRED TGREEN TBLUE TGREENB TCYANB TWHITEB TRESET
|
unset TRED TGREEN TBLUE TGREENB TCYANB TWHITEB TRESET
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# ~/.config/bashrc.d/10_common.sh -- Collection of common bash aliases and functions
|
# ~/.bashrc.d/10_common_aliases.sh -- Collection of common bash aliases and functions
|
||||||
#
|
#
|
||||||
|
|
||||||
# Shortcut aliases
|
# Shortcut aliases
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# ~/.config/bashrc.d/30_desktop.sh -- Aliases and functions for desktop environments
|
# ~/.bashrc.d/30_desktop.sh -- Aliases and functions for desktop environments
|
||||||
#
|
#
|
||||||
|
|
||||||
# Open files according to MIME type
|
# Open files according to MIME type
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# ~/.config/bashrc.d/60_server.sh -- Custom .bashrc additions for server environments
|
# ~/.bashrc.d/60_server.sh -- Custom .bashrc additions for server environments
|
||||||
#
|
#
|
||||||
|
|
||||||
# Set this alias only on hosts where restic is installed
|
# Set this alias only on hosts where restic is installed
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
# Include common settings (default branch, diff tools, aliases...)
|
|
||||||
[include]
|
|
||||||
path = ~/.config/git/config.inc/common.gitconfig
|
|
||||||
|
|
||||||
# Include default user settings
|
|
||||||
[include]
|
|
||||||
path = ~/.config/git/config.inc/user_binaryDiv.gitconfig
|
|
||||||
|
|
||||||
# # Do not sign commits with GPG
|
|
||||||
# [include]
|
|
||||||
# path = ~/.config/git/config.inc/no_gpgsign.gitconfig
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
# Include common settings (default branch, diff tools, aliases...)
|
|
||||||
[include]
|
|
||||||
path = ~/.config/git/config.inc/common.gitconfig
|
|
||||||
|
|
||||||
# Include default user settings
|
|
||||||
[include]
|
|
||||||
path = ~/.config/git/config.inc/user_binaryDiv.gitconfig
|
|
||||||
|
|
||||||
# No PGP key for root user
|
|
||||||
[include]
|
|
||||||
path = ~/.config/git/config.inc/no_gpgsign.gitconfig
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
#
|
|
||||||
# ~/.config/profile.d/30_desktop.sh -- Environment variables for clients / desktop environments.
|
|
||||||
#
|
|
||||||
|
|
||||||
# GNOME Keyring is used as an SSH agent on desktops
|
|
||||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
|
|
||||||
|
|
||||||
# Preferred applications
|
|
||||||
export TERMINAL=sakura
|
|
||||||
export BROWSER=firefox
|
|
||||||
|
|
||||||
# Wine: Do not change filetype associations
|
|
||||||
export WINEDLLOVERRIDES=winemenubuilder.exe=d
|
|
||||||
|
|
||||||
# Firefox: Enable pixel-perfect scrolling
|
|
||||||
export MOZ_USE_XINPUT2=1
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
# Include common settings (default branch, diff tools, aliases...)
|
||||||
|
[include]
|
||||||
|
path = ~/.gitconfig.inc/common.gitconfig
|
||||||
|
|
||||||
|
# Include default user settings
|
||||||
|
[include]
|
||||||
|
path = ~/.gitconfig.inc/user_binaryDiv.gitconfig
|
||||||
|
|
||||||
|
# # Do not sign commits with GPG
|
||||||
|
# [include]
|
||||||
|
# path = ~/.gitconfig.inc/no_gpgsign.gitconfig
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
# Include common settings (default branch, diff tools, aliases...)
|
||||||
|
[include]
|
||||||
|
path = ~/.gitconfig.inc/common.gitconfig
|
||||||
|
|
||||||
|
# Include default user settings
|
||||||
|
[include]
|
||||||
|
path = ~/.gitconfig.inc/user_binaryDiv.gitconfig
|
||||||
|
|
||||||
|
# No PGP key for root user
|
||||||
|
[include]
|
||||||
|
path = ~/.gitconfig.inc/no_gpgsign.gitconfig
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/ssh-agent.sock"
|
||||||
39
.profile
39
.profile
|
|
@ -1,33 +1,30 @@
|
||||||
#
|
#
|
||||||
# ~/.profile -- Included by .bash_profile, i.e. sourced in login shells.
|
# ~/.profile -- Included by .bash_profile; includes ~/.profile.local
|
||||||
# Includes ~/.config/profile.d/*
|
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# SSH key agent
|
||||||
|
[[ -e "$XDG_RUNTIME_DIR/gcr/ssh" ]] && export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
|
||||||
|
|
||||||
# GPG key stuff
|
# GPG key stuff
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
|
|
||||||
# Set terminal type to support colors
|
# Environment variables
|
||||||
export TERM=xterm-color
|
export TERM=xterm-color
|
||||||
|
export TERMINAL=mate-terminal
|
||||||
# Preferred editor
|
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
export BROWSER=firefox
|
||||||
# Set PATH
|
|
||||||
[[ -d "$HOME/.local/bin" ]] && export PATH="$HOME/.local/bin:$PATH"
|
|
||||||
[[ -d "$HOME/bin" ]] && export PATH="$HOME/bin:$PATH"
|
|
||||||
|
|
||||||
# Settings for bc
|
|
||||||
export BC_ENV_ARGS="-lq"
|
export BC_ENV_ARGS="-lq"
|
||||||
[[ -f "$HOME/.bcrc" ]] && export BC_ENV_ARGS="$BC_ENV_ARGS $HOME/.bcrc"
|
[[ -f "$HOME/.bcrc" ]] && export BC_ENV_ARGS="$BC_ENV_ARGS $HOME/.bcrc"
|
||||||
|
|
||||||
# Include drop-in files
|
# PATH
|
||||||
if [[ -d ~/.config/profile.d ]]; then
|
[[ -d "$HOME/.local/bin" ]] && export PATH="$HOME/.local/bin:$PATH"
|
||||||
for f in ~/.config/profile.d/*; do
|
[[ -d "$HOME/bin" ]] && export PATH="$HOME/bin:$PATH"
|
||||||
[[ -f $f ]] && source "$f"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Deprecation warning for .profile.local
|
# Wine: do not change filetype associations
|
||||||
if [[ -e ~/.profile.local ]]; then
|
export WINEDLLOVERRIDES=winemenubuilder.exe=d
|
||||||
echo "WARNING: ~/.profile.local is ignored, please use ~/.config/profile.d/ instead."
|
|
||||||
fi
|
# Firefox: Enable pixel-perfect scrolling
|
||||||
|
export MOZ_USE_XINPUT2=1
|
||||||
|
|
||||||
|
# Include host-specific .profile
|
||||||
|
[ -f ~/.profile.local ] && source ~/.profile.local
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
#
|
||||||
|
# ~/.profile.local (included by ~/.profile)
|
||||||
|
#
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
#
|
||||||
|
# ~/.bashrc.local -- calliope version
|
||||||
|
#
|
||||||
|
|
||||||
|
# Assume colors are set in global .bashrc:
|
||||||
|
# - TRED
|
||||||
|
# - TGREEN
|
||||||
|
# - TBLUE
|
||||||
|
# - TGREENB (bold)
|
||||||
|
# - TRESET
|
||||||
|
|
||||||
|
# Set host-specific bash prompt: "user@host pwd :U "
|
||||||
|
if [[ ${EUID} == 0 ]] ; then
|
||||||
|
PS1="${TRED}\u@\h ${TBLUE}\w ${TGREENB}:U ${TRESET}"
|
||||||
|
else
|
||||||
|
PS1="${TGREEN}\u@\h ${TBLUE}\w ${TGREENB}:U ${TRESET}"
|
||||||
|
fi
|
||||||
|
|
||||||
Loading…
Reference in New Issue