mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 17:52:26 +00:00
More bash bits
This commit is contained in:
@@ -5,4 +5,5 @@ else
|
|||||||
alias ls="ls -F --color=auto"
|
alias ls="ls -F --color=auto"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias tma="tmux attach"
|
alias t='(tmux has-session 2>/dev/null && tmux attach) || (tmux new-session)'
|
||||||
|
alias tma="tmux attach"
|
||||||
@@ -25,4 +25,16 @@ function add-sshkey() {
|
|||||||
echo "No key named ${NAME} found..."
|
echo "No key named ${NAME} found..."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Switch to a simple prompt for demos (thanks Mark H for the idea)
|
||||||
|
function demoprompt() {
|
||||||
|
if [ ! -z ${OLDPS1+x} ]; then
|
||||||
|
PS1=$OLDPS1
|
||||||
|
unset OLDPS1
|
||||||
|
else
|
||||||
|
OLDPS1=$PS1
|
||||||
|
PS1="\$ "
|
||||||
|
clear
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user