From owner-freebsd-stable@freebsd.org Thu Mar 10 21:16:03 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31169ACB2CC for ; Thu, 10 Mar 2016 21:16:03 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C826583A for ; Thu, 10 Mar 2016 21:16:02 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id l68so4562222wml.0 for ; Thu, 10 Mar 2016 13:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:cc:to:from:message-id:date:user-agent :mime-version:in-reply-to; bh=ahqjaiWR53EXaGhNewUF6o/d9rSUB1m7kxjZUZjD28g=; b=bjam0hmnaRHxlcYPgANyNw0R9Z1h2OF5jwCeM8s9UXiXzWq3Z1juE76uYAbbmeYEp1 pckc4g+HvCfoRkmEHtOJmG0pCMWH9FqSG03KNiBHjitt1fN43LIg8gpHRJU5r7X59h8Y 824fPWtvlOwnxsHA2vvCAAZR7zcWRixWQwoHo2HjKkwcG/tQiE2+N8VQMgUlerqK0IL2 G0s6N3QqoUIGLm+2IJejTqTc5UTlesEFCYUi6KWgN0FwrWxLCSFle4FFU/wG8MUIuS37 EwWLGztk8/XJEFUi7DhwWMui5lmMxSLW0NQr3WZl0UgZfPJJZ+SZO/ATxzpAYPWeRrvx 2qlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:cc:to:from:message-id:date :user-agent:mime-version:in-reply-to; bh=ahqjaiWR53EXaGhNewUF6o/d9rSUB1m7kxjZUZjD28g=; b=Jf8/22sMW3C9MKv/jZmxkNZoRUuw15YrdvbHQIwCu87jigbQZqqc3n0cbyw078xH22 zy3iG54fTen43f7+yq7uk9QwIDp9nyA0eVMxFgpjsVp19UpyRvuxfXAHv1eT4J4yHnqe APqqrA37DJC9Ew1zZodQ/F5h0syyEM4km1ukjD8vS4MFni3l77hOrtO1t3zzW5MMyIUF i/ml6jZIxNiAkKqnOUzEGFViSaZxJU/Z2Z4NI78+Lh6PZugkPPhQqdTg5IZiZiVWtQYI +aX6U1Zw6z/JSz2Du/8PwrcalBv7opT7BL7n50urrbrIR72V0yb882ySs/oY9wFSBEtj sS0w== X-Gm-Message-State: AD7BkJI0UFNpgt4aBUGgzy4gM26BIgZIvAPdJ27Z+fHzGjI5KVevLe+le+eQF5C/xMJJKg== X-Received: by 10.28.174.72 with SMTP id x69mr109556wme.68.1457644561228; Thu, 10 Mar 2016 13:16:01 -0800 (PST) Received: from Johans-MacBook-Air.local (92-111-79-242.static.chello.nl. [92.111.79.242]) by smtp.googlemail.com with ESMTPSA id z127sm393094wme.5.2016.03.10.13.16.00 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Mar 2016 13:16:00 -0800 (PST) Subject: Re: output to file different than console. (ssh and zfs ) References: <56E1B925.5060105@gmail.com> <56E1BFD6.60906@gmail.com> Cc: Brandon Allbery To: freebsd-stable@freebsd.org From: Johan Hendriks Message-ID: <56E1E40F.9070608@gmail.com> Date: Thu, 10 Mar 2016 22:15:59 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2016 21:16:03 -0000 Op 10/03/16 om 19:43 schreef Brandon Allbery: > > On Thu, Mar 10, 2016 at 1:41 PM, Johan Hendriks > > wrote: > > mytitle > > > if ($?prompt) mytitle > > > -- > brandon s allbery kf8nh sine nomine > associates > allbery.b@gmail.com > ballbery@sinenomine.net > unix, openafs, kerberos, infrastructure, xmonad > http://sinenomine.net Found it! There is already a if ($?prompt) in the .cshrc file. So I added mytitle to the if statement and all is fine now. And again, thank you very much .. So here is my full .cshrc file if anybody else needs this. Only the two lines with mytitle are added to the default .cshrc file that comes with FreeBSD. # $FreeBSD: releng/10.2/etc/root/dot.cshrc 243893 2012-12-05 13:56:39Z eadler $ # # .cshrc - csh resource script, read at beginning of execution by each shell # # see also csh(1), environ(7). # more examples available at /usr/share/examples/csh/ # # Create a nice TAB title in Xterm alias mytitle 'printf "\033]0;$HOST\a"' alias h history 25 alias j jobs -l alias la ls -aF alias lf ls -FA alias ll ls -lAF # A righteous umask umask 22 set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin) setenv EDITOR vi setenv PAGER more setenv BLOCKSIZE K if ($?prompt) then # An interactive shell -- set some stuff up set prompt = "%N@%m:%~ %# " set promptchars = "%#" # Print the title to the TAB mytitle set filec set history = 1000 set savehist = (1000 merge) set autolist = ambiguous # Use history to aid expansion set autoexpand set autorehash set mail = (/var/mail/$USER) if ( $?tcsh ) then bindkey "^W" backward-delete-word bindkey -k up history-search-backward bindkey -k down history-search-forward endif endif