From 4b2555e031be504db6761347ff9a825009ebd87f Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 14 Jan 2022 22:16:14 -0300 Subject: [PATCH] bash --- .bash_profile | 11 +++++++++++ .bashrc | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100755 .bash_profile create mode 100644 .bashrc diff --git a/.bash_profile b/.bash_profile new file mode 100755 index 0000000..841ef65 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,11 @@ +. ~/.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 + diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..6436df3 --- /dev/null +++ b/.bashrc @@ -0,0 +1,11 @@ +. ~/.profile + +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 + +alias gitdf='git --git-dir=$HOME/.config/dotfiles/ --work-tree=$HOME' +alias ssh='TERM=xterm-256color ssh' +alias e="$EDITOR"