Borrar bash
This commit is contained in:
parent
c0bcb1057a
commit
7d6c6d5efc
3 changed files with 0 additions and 71 deletions
|
@ -1,11 +0,0 @@
|
|||
. ~/.profile
|
||||
if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then
|
||||
mkdir -p "$HOME/.local/share/river"
|
||||
log="$HOME/.local/share/river/$(date +%Y-%m-%d@%H:%M:%S).log"
|
||||
exec env \
|
||||
XDG_CURRENT_DESKTOP=river \
|
||||
XDG_SESSION_DESKTOP=river \
|
||||
dbus-run-session river -log-level debug >"$log" 2>&1
|
||||
fi
|
||||
. ~/.bashrc
|
||||
|
52
.bashrc
52
.bashrc
|
@ -1,52 +0,0 @@
|
|||
source ~/.profile
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# History config
|
||||
export HISTSIZE=10000
|
||||
export HISTFILESIZE=10000
|
||||
shopt -s histappend # Append to history file instead of overwriting
|
||||
shopt -s cmdhist # Write a multi line command in a single line
|
||||
PROMPT_COMMAND="history -a;$PROMPT_COMMAND" # Save history on every command
|
||||
|
||||
stty -ixon # Make bash receive C-s for history search
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Aliases
|
||||
alias gitdf='git --git-dir=$HOME/.config/dotfiles/ --work-tree=$HOME'
|
||||
alias ssh='TERM=xterm-256color ssh'
|
||||
alias e="$EDITOR"
|
||||
alias r="trash -r"
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Notify terminal of current working directory
|
||||
# https://codeberg.org/dnkl/foot/wiki#user-content-bash-and-zsh
|
||||
_urlencode() {
|
||||
local length="${#1}"
|
||||
for (( i = 0; i < length; i++ )); do
|
||||
local c="${1:$i:1}"
|
||||
case $c in
|
||||
%) printf '%%%02X' "'$c" ;;
|
||||
*) printf "%s" "$c" ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
osc7_cwd() {
|
||||
printf '\e]7;file://%s%s\e\\' "$HOSTNAME" "$(_urlencode "$PWD")"
|
||||
}
|
||||
|
||||
if ! "$REMOTE"; then
|
||||
PROMPT_COMMAND="osc7_cwd;$PROMPT_COMMAND"
|
||||
fi
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# GPG SSH agent
|
||||
if ! "$REMOTE"; then
|
||||
unset SSH_AGENT_PID
|
||||
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||||
# Start if not started
|
||||
gpg-agent --daemon 2>/dev/null
|
||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
fi
|
||||
fi
|
||||
|
8
.inputrc
8
.inputrc
|
@ -1,8 +0,0 @@
|
|||
$include /etc/inputrc
|
||||
set completion-ignore-case on
|
||||
set completion-query-items -1
|
||||
set show-all-if-unmodified on
|
||||
set show-all-if-ambiguous off
|
||||
set colored-completion-prefix on
|
||||
set colored-stats on
|
||||
set visible-stats on
|
Loading…
Reference in a new issue