aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2019-09-25 22:11:06 -0400
committertdro <tdro@users.noreply.github.com>2019-09-25 22:11:06 -0400
commit387bd08eb7c35077757b96f61916e5e7b0da1b95 (patch)
tree1b86c1e120f6d0759b853b96539221a7cf0b346f /.bashrc
parent5eb7d7a9db67b4035eebdf707be44ccd738fe829 (diff)
downloaddotfiles-387bd08eb7c35077757b96f61916e5e7b0da1b95.tar.gz
dotfiles-387bd08eb7c35077757b96f61916e5e7b0da1b95.tar.bz2
dotfiles-387bd08eb7c35077757b96f61916e5e7b0da1b95.zip
.bashrc: Remove lastcmd function
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc5
1 files changed, 1 insertions, 4 deletions
diff --git a/.bashrc b/.bashrc
index 034ee76..036e1a7 100644
--- a/.bashrc
+++ b/.bashrc
@@ -52,11 +52,8 @@ shopt -s histappend;
# bash history one command per line
shopt -s cmdhist;
-# get last command for prompt command
-lastcmd() { LASTCMD=$(history 1 | cut -c8-); echo -ne "\e]2;$LASTCMD\a\e]1;$LASTCMD\a"; }
-
# prompt command runs on every command
-export PROMPT_COMMAND="history -a; command -v lastcmd > /dev/null 2>&1 && lastcmd"
+export PROMPT_COMMAND="history -a;"
# ssh agent with keychain
alias ssh='eval $(/usr/bin/keychain --eval --agents ssh -Q --quiet ~/.ssh/mobile ~/.ssh/primary) && ssh'