You are not logged in.

#1 2024-11-06 22:17:11

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

[SOLVED] forgot to initiate zoxide

ive been trying to install zoxide on my new arch installation and it works with the command zoxide but not z, i read somewhere it is because the export $PATH comes after eval so i should fix it. but when i open the bashrc file in my home directory and in /etc. IT DOES NOT EVEN MENTION $PATH EVEN ONCE. i do not know why this happened, maybe i missed a step but i don't know. it might because i didn't specify the shell when creating my main user.
My ~/.bashrc

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto -a'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '

my /etc/bash.bashrc

[[ $- != *i* ]] && return

PS1='[\u@\h \W]\$ '

case ${TERM} in
  Eterm*|alacritty*|aterm*|foot*|gnome*|konsole*|kterm*|putty*|rxvt*|tmux*|xterm*)
    PROMPT_COMMAND+=('printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')

    ;;
  screen*)
    PROMPT_COMMAND+=('printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')
    ;;
esac

if [[ -r /usr/share/bash-completion/bash_completion ]]; then
  . /usr/share/bash-completion/bash_completion
fi

Last edited by Omarz2012 (2024-11-06 22:55:17)

Offline

#2 2024-11-06 22:40:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,289

Re: [SOLVED] forgot to initiate zoxide

All of this is normal, the default paths are defined in /etc/profile. You shouldn't mess with those however. From the webpage just add

eval "$(zoxide init bash --cmd)"

to your .bashrc https://github.com/ajeetdsouza/zoxide?t … file#flags

Online

#3 2024-11-06 22:54:31

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

Re: [SOLVED] forgot to initiate zoxide

THX

V1del wrote:

All of this is normal, the default paths are defined in /etc/profile. You shouldn't mess with those however. From the webpage just add

eval "$(zoxide init bash --cmd)"

to your .bashrc https://github.com/ajeetdsouza/zoxide?t … file#flags

Offline

Board footer

Powered by FluxBB