From: Tomasz Pala Date: Sat, 13 Aug 2016 10:21:11 +0000 (+0200) Subject: added some example aliases, sefety ones enabled by default (opt-out) X-Git-Tag: auto/th/coreutils-8.27-1~3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcoreutils.git;a=commitdiff_plain;h=945327688e9af66f24182b3b66df6a80fbe48db2 added some example aliases, sefety ones enabled by default (opt-out) - note that --no-clobber can't be used by default since it silently ignores files - nothing should fail encountering interactive command in interactive shell; if anything breaks, it should be fixed itself --- diff --git a/coreutils.sh b/coreutils.sh new file mode 100644 index 0000000..8586ac2 --- /dev/null +++ b/coreutils.sh @@ -0,0 +1,6 @@ +alias cp='cp --interactive' # --archive --backup=numbered --reflink=auto --verbose +alias mv='mv --interactive' # --backup=numbered --verbose +alias rm='rm --interactive --one-file-system' # --interactive=once --verbose +#alias ls='ls --all --color=if-tty --classify --full-time --human-readable --quoting-style=shell -v' +#alias df='df --human-readable --local --exclude-type=supermount' +#alias du='du --human-readable' diff --git a/coreutils.spec b/coreutils.spec index 5fe925f..cad8a6f 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -20,6 +20,7 @@ Source3: DIR_COLORS.256color Source4: colorls.sh Source5: colorls.csh Source6: mktemp.1.pl +Source7: %{name}.sh Patch0: %{name}-info.patch Patch1: %{name}-getgid.patch Patch2: %{name}-uname-cpuinfo.patch @@ -200,7 +201,7 @@ mv $RPM_BUILD_ROOT%{_bindir}/chroot $RPM_BUILD_ROOT%{_sbindir} cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir} cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir} -cp -p %{SOURCE4} %{SOURCE5} $RPM_BUILD_ROOT/etc/shrc.d +cp -p %{SOURCE4} %{SOURCE5} %{SOURCE7} $RPM_BUILD_ROOT/etc/shrc.d for d in cs da de es fi fr hu id it ja ko nl pl pt ru zh_CN; do install -d $RPM_BUILD_ROOT%{_mandir}/$d/man1 @@ -339,6 +340,7 @@ rm -rf $RPM_BUILD_ROOT %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/DIR_COLORS.256color %config(noreplace) /etc/shrc.d/colorls.csh %config(noreplace) /etc/shrc.d/colorls.sh +%config(noreplace) /etc/shrc.d/%{name}.sh %dir %{_libdir}/coreutils %attr(755,root,root) %{_libdir}/coreutils/libstdbuf.so %{_mandir}/man1/arch.1*