SliTaz SliTaz Forum

You are not logged in.

#1 2012-01-25 22:07:23

gm61sp
Member
Registered: 2012-01-16
Posts: 8

alias...where?

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

#2 2012-01-26 06:54:37

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: alias...where?

If you launch xterm as a login shell it will read ~/.profile

Edit /usr/share/applications/xterm.desktop

Exec=xterm -ls

Offline

#3 2012-01-26 21:42:48

gm61sp
Member
Registered: 2012-01-16
Posts: 8

Re: alias...where?

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

#4 2012-01-26 22:14:17

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: alias...where?

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

#5 2012-01-26 22:21:26

gm61sp
Member
Registered: 2012-01-16
Posts: 8

Re: alias...where?

Thanks Mojo.

I don't mind to type it on my user xterm.

Offline

#6 2012-01-26 23:28:27

gm61sp
Member
Registered: 2012-01-16
Posts: 8

Re: alias...where?

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]