Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #201658

Re: a quick tip that sometimes saves a lot of further worries

From songbird <songbird@anthive.com>
Newsgroups linux.debian.user
Subject Re: a quick tip that sometimes saves a lot of further worries
Date 2018-10-26 05:10 +0200
Message-ID <wN0FA-7dD-13@gated-at.bofh.it> (permalink)
References <wMQmR-11H-1@gated-at.bofh.it> <wMTkK-2JO-5@gated-at.bofh.it> <wMTup-2MM-3@gated-at.bofh.it>
Organization the little wild kingdom

Show all headers | View raw


Étienne Mollier wrote:
...
> Even though I kind of agree with Nicholas, your concept is quite
> amusing.  :-)

  :)  what good is having multiple terminal windows if you 
don't use them?  most of the time i use only four of them per
project.


> Would that shell function do the kind of thing you would expect?
>
> 	vi () {
> 		local arg
> 		for arg in "$@"
> 		do
> 			if [ -f "$arg" ]
> 			then
> 				printf '<<< %s >>>\n' "$arg"
> 				cat "./$arg"
> 			fi
> 		done
> 	
> 		command vi "$@"
> 	
> 		for arg in "$@"
> 		do
> 			if [ -f "$arg" ]
> 			then
> 				printf '>>> %s <<<\n' "$arg"
> 				cat "./$arg"
> 			fi
> 		done
> 	}
>
> Feel free to refine to your taste.
> Kind Regards,

charge!

  now here's the fun, multiple terminal windows open and i only
want a certain one to be used but with booting i cannot be 
certain which ones are which.  :(

  may have to explore udev more.  the above script and modifications
are noted for future reference...  ;)  tks.  lol

  p.s. there is this thing called bup which i've installed and
used before, i'm sure it could be setup and fired off about every
few minutes to capture finer detail slices than what my current
backups are doing.

  i'll be pondering all of this some time in the future...  but
not tonight.  cheers,


  songbird

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

a quick tip that sometimes saves a lot of further worries songbird <songbird@anthive.com> - 2018-10-25 18:10 +0200
  Re: a quick tip that sometimes saves a lot of further worries Nicholas Geovanis <nickgeovanis@gmail.com> - 2018-10-25 21:20 +0200
    Re: a quick tip that sometimes saves a lot of further worries Étienne Mollier <etienne.mollier@mailoo.org> - 2018-10-25 21:30 +0200
      Re: a quick tip that sometimes saves a lot of further worries Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-25 21:40 +0200
        Re: a quick tip that sometimes saves a lot of further worries Étienne Mollier <etienne.mollier@mailoo.org> - 2018-10-25 21:50 +0200
        Re: a quick tip that sometimes saves a lot of further worries songbird <songbird@anthive.com> - 2018-10-26 05:10 +0200
      Re: a quick tip that sometimes saves a lot of further worries songbird <songbird@anthive.com> - 2018-10-26 05:10 +0200
    Re: a quick tip that sometimes saves a lot of further worries songbird <songbird@anthive.com> - 2018-10-26 00:00 +0200

csiph-web