making alisas
alias ytdla='/data/data/com.termux/files/home/.shortcuts/yt_download.sh'
i pasted this on my .bashrc or .zshrc but i am anable to use the alisas, when i source .zshrc i can use the alias but the termux always forget when i close termux? any help?
11 Replies
Solution
you're supposed to put in
.bashrc
if you're using bash
as your shelli also put in on .bashrc
before i put it on .zshrc
can you do
alias ytdla
and send the output to here?i need to type alias as well?
alias: ytdla: not found
Created by
pipx
on 2024-08-15 18:46:46
export PATH="$PATH:/data/data/com.termux/files/home/.local/bin
alias ytdla="/data/data/com.termux/files/home/.shortcuts/yt_download.sh"
this is my bash rc
bash: .bashrc: line 5: unexpected EOF while looking for matching `"'
when i source .bashrc
it was due to quotation marks (") it should use single (') instead@Shadowy are you using zsh or bash?
bash
Tip: Use
$HOME
variableYou should not use any zsh startup files then like .zshrc
my termux just broke, i cant even do ls command
i edited the quotation marks from this " to this ' and it ended up destroying my termux
thanks a lot
the variable $PATH was autowritten. it was already there.