blob: d4d92158f6cd109eeacb1e2969bc52aa9aa4fce0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
# Add a colon prompt to ed when a command is expected rather than text; makes
# it feel a lot more like using ex. Only do this when stdin is a terminal,
# however.
ed() {
if [[ -t 0 ]]; then
command ed -p: "$@"
else
command ed "$@"
fi
}
|