You are not logged in.

#1 2014-07-01 04:44:18

revoltorb
Member
Registered: 2014-07-01
Posts: 3

[SOLVED] zsh: Failed to execute operation: No such file or directory

I recently ordered a chromebook (acer c720) and have successfully replaced ChromeOS with Arch Linux. Things were going great the past 2 days but all of a sudden whenever I try to use tab completion on zsh (does not happen in bash or any other shell I've tested) I receive the message:

Failed to execute operation: No such file or directory

My .zprofile is:

emulate sh -c 'source /etc/profile'

#[[ -f ~/.zshrc ]] && . ~/.zshrc

if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
  startx
fi

My .zshenv is:

export PATH=/home/zach/.bin:$PATH
export EDITOR=nano
export BROWSER=firefox


[[ $(tty) = /dev/tty1 ]]  && xrdb merge /home/zach/.config/xresources

My .zshrc is:

#source ~/.zshenv

# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
HISTCONTROL=ignoredups
setopt appendhistory autocd extendedglob nomatch
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/zach/.zshrc'

autoload -Uz compinit
compinit
# End of lines added by compinstall

PS1=$'\e[1;36m%~\e[0m >>\e[1;36m>\e[0m%] '

#
#Begin Aliases
#

alias edit='$EDITOR'
alias sedit='sudo $EDITOR'
alias pacman='sudo pacman'

# Listing
alias ls='ls --color=auto --group-directories-first'
alias lsl='ls --color=auto --group-directories-first -l'
alias lsa='ls --color=auto --group-directories-first -al'
alias lsp='ls --color=auto --group-directories-first -alp'

# Moving/Copying
alias cp='cp -r'
alias rm='rm -r'
alias ...='cd ../..'
alias ....='cd ../../..'
alias bd='cd -'
alias mkdir='mkdir -p'

# System
alias systemctl='sudo systemctl'
alias journalctl='sudo journalctl'
alias cronedit='EDITOR=nano crontab -e'
alias reload-daemons='sudo systemctl daemon-reload'
alias enable='sudo systemctl enable'
alias disable='sudo systemctl disable'
alias start='sudo systemctl start'
alias stop='sudo systemctl stop'

Is there something I'm missing or not considering? The tab completion still works, it just displays that message every time inline and it's really annoying. Also I searched google, the wiki, and the forums for any information regarding this and either my search-fu isn't strong enough or it's not showing up elsewhere.

Last edited by revoltorb (2014-09-13 14:05:44)

Offline

#2 2014-09-09 14:14:20

sdothum
Member
Registered: 2013-04-26
Posts: 14

Re: [SOLVED] zsh: Failed to execute operation: No such file or directory

Rename the "enable" and "disable" aliases. They are zsh hash table operators.

Offline

#3 2014-09-13 14:05:21

revoltorb
Member
Registered: 2014-07-01
Posts: 3

Re: [SOLVED] zsh: Failed to execute operation: No such file or directory

That did the trick, thank you!

Offline

Board footer

Powered by FluxBB