You are not logged in.
Pages: 1
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
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
THX
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
Pages: 1