zsh-users
 help / color / Atom feed
* Can't Remove Alias
       [not found] <Mailbird-0b725ad1-d9e5-462e-aaa1-68e81b0a0b8c@gmail.com>
@ 2019-11-05  5:52 ` johny why
  2019-11-05  6:09   ` dana
  0 siblings, 1 reply; 3+ messages in thread
From: johny why @ 2019-11-05  5:52 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 386 bytes --]

Hi
i want to disable a global zsh alias on archlabs.

i found the following files:

# find -iname 'aliases.zsh'
./etc/skel/.zsh/settings/aliases.zsh
./home/johny/.zsh/settings/aliases.zsh
./root/.zsh/settings/aliases.zsh

i commented out the gm alias with #, in both the root and johny files:

# alias gm='git merge'

but on reboot, the alias still works. How to remove the alias?

thx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't Remove Alias
  2019-11-05  5:52 ` Can't Remove Alias johny why
@ 2019-11-05  6:09   ` dana
  2019-11-05  6:25     ` Johny Why
  0 siblings, 1 reply; 3+ messages in thread
From: dana @ 2019-11-05  6:09 UTC (permalink / raw)
  To: johny why; +Cc: zsh-users

On 4 Nov 2019, at 23:52, johny why <johnywhy@gmail.com> wrote:
> but on reboot, the alias still works. How to remove the alias?

You can run `zsh -x` to see where the alias is actually getting set, or if you
can't change it there for some reason you can just add `unalias gm` to your
.zshrc

dana


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't Remove Alias
  2019-11-05  6:09   ` dana
@ 2019-11-05  6:25     ` Johny Why
  0 siblings, 0 replies; 3+ messages in thread
From: Johny Why @ 2019-11-05  6:25 UTC (permalink / raw)
  To: dana; +Cc: zsh-users

[-- Attachment #1: Type: text/plain, Size: 2162 bytes --]

getting strange results. 

+_defaults_:14> [[+_defaults_:14> whoami
+_defaults_:14> [[ johny == root ]]
+_defaults_:16> [[ -z $'\n' ]]
+_defaults_:20> : '>'
+_defaults_:21> : +
+_defaults_:22> : +
+_defaults_:23> PROMPT_ARROW='%F{magenta}>%f'
+_defaults_:24> PROMPT_LNBR1='%F{magenta}+%f'
+_defaults_:25> PROMPT_LNBR2='%F{magenta}+%f'
+prompt_simpl_setup:90> [[ $TERM -regex-match (xterm|rxvt|st) ]]
+prompt_simpl_setup:91> precmd_functions+=( _prompt_precmd_title )
+prompt_simpl_setup:92> preexec_functions+=( _prompt_preexec_title )
+prompt_simpl_setup:95> PROMPT='$(_prompt_)'
+prompt_simpl_setup:96> RPROMPT='$(_rprompt_)'
+prompt_simpl_setup:97> PS2='%_ ==> '
+prompt_simpl_setup:98> PS3='choose: '
+prompt_simpl_setup:99> PS4='+%N:%I:%_ ==> '
+set_prompt:182:case cmdand ==> prompt_theme=( simpl )
+prompt:232: ==> (( 4 ))
+prompt:233:cmdand ==> setopt nopromptbang nopromptcr nopromptpercent nopromptsp nopromptsubst promptcr promptpercent promptsp promptsubst
+prompt:235: ==> true
+/home/johny/.zshrc:40: ==> al-info

+_precmd_update_git:50:if ==> (( __EXECUTED_GIT_COMMAND ))
+_prompt_precmd_title:38: ==> print -n '\e]2;johny@zsh - /home/johny\a'
+zsh:1:cmdsubst ==> _prompt_
+_prompt_:48: ==> print -n '%F{magenta}+%f%(?,, %F{red}%?)%(!,%F{red},%F{cyan}) %F{magenta}'
+_prompt_:50:if ==> [[ -z $'\n' ]]
+_prompt_:52:elif ==> [[ 80 -gt 30 ]]
+_prompt_:53:elif-then ==> print -n '%-2<...<%~%<<'
+_prompt_:60:if ==> [[ -n '' ]]
+_prompt_:62:elif ==> ps -o 'command=' 611
+_prompt_:62:elif pipe ==> grep -qw nnn
+_prompt_:66: ==> print -n $'\n%F{magenta}+%f%F{magenta}>%f '
+_prompt_:68: ==> [[ $KEYMAP -regex-match vicmd ]]
+_prompt_:68:cmdand ==> print -n '%F{cyan}'
+_prompt_:70: ==> print -n '%#%f '
+zsh:1:cmdsubst ==> _rprompt_
+_rprompt_:75: ==> _git_status
+_git_status:78: ==> git rev-parse --is-inside-work-tree
+_git_status:79: ==> _precmd_update_git
+_precmd_update_git:50:if ==> (( __EXECUTED_GIT_COMMAND ))
+_git_status:81:if ==> [[ -n '' ]]
+_rprompt_:76:if ==> [[ -n '%*' ]]
+_rprompt_:77:then ==> (( (80 / 4) / 4 > 2 ))
+_rprompt_:77:then cmdand ==> print -n ' %*'
+ ~
+> % 22:19:55


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Mailbird-0b725ad1-d9e5-462e-aaa1-68e81b0a0b8c@gmail.com>
2019-11-05  5:52 ` Can't Remove Alias johny why
2019-11-05  6:09   ` dana
2019-11-05  6:25     ` Johny Why

zsh-users

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-users

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git