You are not logged in.
Pages: 1
Hi:
What is the file to set alias?
I thought it was ~/.profile:
# ~/.profile: Executed by Bourne-compatible login SHells.
#
# Path to personal scripts and executables (~/.local/bin).
#
if [ -d "$HOME/.local/bin" ] ; then
PATH=$HOME/.local/bin:$PATH
export PATH
fi
# Environnement variables and prompt for Ash SHell
# or Bash. Default is a classic prompt.
#
PS1='\u@\h:\w\$ '
EDITOR='nano'
PAGER='less -EM'
export PS1 EDITOR PAGER
# Alias definitions.
#
alias df='df -h'
alias du='du -h'
alias ls='ls -p'
alias ll='ls -l'
alias la='ls -la'
#mis alias
alias bajadas='cd /archivos/bajadas ; ls'
alias linux='cd /archivos/linux ; ls'
alias terminados='cd /archivos/bajadas/terminados ; ls'
alias conciertos='cd /archivos/conciertos'
alias iso='wodim -v dev=/dev/scd0 speed=4 -eject'
alias borrar='wodim -blank=fast -v -eject dev=/dev/scd0'
# Avoid errors... use -f to skip confirmation.
alias rm='rm -i'
alias mv='mv -i'
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
umask 022
that's my profile file.
But any alias works to me.Even the defaults one.
Normally I use the bashrc file.
We have not the alias command to use from the shell.Me no at least.
Where do I have to write it?
Thanks a lot.
Offline
If you launch xterm as a login shell it will read ~/.profile
Edit /usr/share/applications/xterm.desktop
Exec=xterm -ls
Offline
Thanks for the awnser.
I did it :
Desktop Entry]
Name=XTerm
Comment=standard terminal emulator for the X window system
Exec=xterm -ls
Terminal=false
Type=Application
Encoding=UTF-8
Icon=xterm-color_48x48
Categories=System;TerminalEmulator;
But it is not working to me.
pepe@pp:~$ la
sh: la: not found
But if I open xterm and type xterm -ls YES.
I have been trying to find the solution...but i did not.
Thanks alot
Offline
My mistake,the xterm.desktop edit only works for root account.
Something changed that causes this problem on newer cooking iso's.
Boot into livecd of recent rolling cooking iso as tux.
Open xterm,type alias,it returns nothing.
I boot into: http://mirror.slitaz.org/iso/undigest/slitaz-xorg-light.iso
alias returns every alias listed in /home/tux/.profile
alias df='df -h'
alias du='du -h'
alias ls='ls -p'
alias ll='ls -l'
alias la='ls -la'
alias rm='rm -i'
alias mv='mv -i'
Offline
Thanks Mojo.
I don't mind to type it on my user xterm.
Offline
Hi Mojo.
I have the system update...so probably that's the problem.
Launching xterm from the fluxbox menu using xterm -ls it works.
Thanks for the anwser.
Offline
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]