Prev | Current Page 229 | Next

Michael McCallister

"openSUSE Linux Unleashed"

If you often mistype a command, you can specify a little
reminder. You may think that the opposite of the mount command to display a drive or
partition is unmount, but really it??™s umount (no n). This alias tells bash to remind you of
the right command every time you add the extra n. Sure, you could just have unmount
replace umount on your system, but what if you are working on someone else??™s system
that does not have this alias? You may just forget the real command.
With this method, you might train your fingers to type the right thing after a few gentle
nudges.
alias unmount=??™echo ???Error: Try the command: umount??? 1>&2; false??™
test -s $HOME/.alias && . $HOME/.alias
fi
CHAPTER 5 Getting Started with openSUSE 80
This section modifies how the command history is handled, by making sure the History
file doesn??™t get too big with many duplicate listings of the same file.
# Do not save dupes and lines starting by space in the bash history file
HISTCONTROL=ignoreboth
if test ???$is??? = ???ksh??? ; then
# Use a ksh specific history file and enable
# emacs line editor
HISTFILE=$HOME/.


Pages:
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
wyciągarki wróżby miłosne cukiernia-stykowscy.pl salon kosmetyczny kraków pompy ciepła