Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with user function
- X-seq: zsh-users 29700
- From: Duke Normandin <dukeofpurl@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Problem with user function
- Date: Fri, 23 Feb 2024 11:35:50 -0700
- Archived-at: <https://zsh.org/users/29700>
- In-reply-to: <CAN=4vMr5iEcRAudk5RAjkxVt8ruf-qnz+A63efLxR=Lya0JyZg@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <20240223104901.35a540adb685459cdfe3c2a5@gmx.com> <CAN=4vMr5iEcRAudk5RAjkxVt8ruf-qnz+A63efLxR=Lya0JyZg@mail.gmail.com>
- Ui-outboundreport: notjunk:1;M01:P0:zIrO7o1j+mU=;UhBWtbRUmxvEHG9ajVuhSqBQVFs aWE7Uf5JZ7jagGoN5uHPPUuK59obWT3oHWBDo/jKNEWWXZTRolQHmZkjF+m25oW+YtTbrGpC6 eMFMJwzf+HftIVWJ6A6OV/x9fk8aYVIvc+Mmv968K3N/004XDxFDCLF32AGoUnUnLsnsKST+4 rK3NUGElPS1CjFxu5TTtBgRUojJbUuPU0K3BQEjxryxJpsR0QFBJ+AU1T+CYtrhCCEyKwxZNz fJTk5PLq9HLnU6q8V2/umOWCcV71sJmRL9P74dDe1j7yKssu5C7kcp31NJg3m1OJmRgcelKWx hnQgKav6LRNKgrCkLOj3vrG10Czkn7gmP/EHUnGHWzmEYJ2oBunPC2PuZ1wlPXLtRgDCYBMfQ y6ql1M1+lc6YTblxF6aWVTWb3p3PZGZYSialgBeL5sJomHQTWVwdxHPb9L5S3d7jNiN5qpIbh IvIG0yY64bnPVZ/SzBs+5s69etijNlHzfql2aJc9SiUti/WpT+YSRM1mamSfljzAe8yN5vje8 FRYYZKguKuN1u7IWWRKXO8iXtLglkqk9mqSvpXrCsgpbX4/rrvdi+IARMu54nTEv5ByEgbw/F tYYziTywMGRF6KLEJ5vGGH6Vaqt8XVGxx/7+q7hhf+DLu9zxtL2W444Pl7jIi3DSBp5ndt4Lt S+af6pT1khAH0jrDZ4/kGPH5lSwXt2bF50OY4cHG6uZ2aPiE2+thA0YhtAJ3+PSnqxS5pZ2hR Mm3O5N1RcsZLNPp/imqU34oUzJDoxy8a11GtxoX7NmoNV5WufsGPpgl3HQxLypaIMvK5ZzhR5 YjB5leG7ACuDB5A8+1soBgoCBsvEz5oXx7rbzfdsrCsbo=
On Fri, 23 Feb 2024 19:30:15 +0100
Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> wrote:
> On Fri, Feb 23, 2024 at 6:49 PM Duke Normandin
> <dukeofpurl@xxxxxxx> wrote:
> >
> > After installing .oh-my-zsh, I get this error msg, which I
> > didn't while running plain zsh.
> >
> > .zshrc:92: defining function based on alias `ls'
> > .zshrc:92: parse error near `()'
> >
> > The errors refer to a few functions that I use to take notes:
> >
> > n() {$EDITOR ~/notes/${1}.txt}
> > l() {$PAGER ~/notes/${1}.txt}
> > nls() {ls --group-directories-first -c --color ~/notes/${1} }
>
> I don't see anything wrong with this code. The error you've got
> happens when you do this:
>
> alias ls='ls -A'
> ls() { whatever; }
No! It happens when I launch a terminal and my .zshrc file is read.
> Does your .zshrc attempt to define a function called "ls" on line
> 92? What does that line look like?
It looks like what I included in my original message. See above in
the quotes!
--
Duke
Messages sorted by:
Reverse Date,
Date,
Thread,
Author