Re: [EXT] [qubes-users] How to make aliases persistent?

2020-08-04 Thread Ulrich Windl

On 7/10/20 10:28 AM, Alex Lu wrote:

For example, when I type:

alias ll='ls -lh'

it works just fine, but after restarting the VM (either appVM or 
templateVM), I have to do all over it again.


"man bash", not qubes os specific:
"   When  bash is invoked as an interactive login shell, or as a 
non-interactive shell with the --login option, it first reads and 
executes commands from the
   file /etc/profile, if that file exists.  After reading that 
file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in 
that order,  and  reads
   and  executes  commands  from  the  first  one that exists and 
is readable.  The --noprofile option may be used when the shell is 
started to inhibit this

   behavior."





--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/46f2c835-9b11-645d-5050-d714d21dd4d2%40rz.uni-regensburg.de.


Re: [qubes-users] How to make aliases persistent?

2020-07-10 Thread Alex Lu
Ah, it was that easy! Sometimes I get stuck on things like this and 
can't find the answer myself. Thank you, Peter!


--
Alex

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/c0f8290860420a7dd340405b87761776%40cock.li.


Re: [qubes-users] How to make aliases persistent?

2020-07-10 Thread Peter Funk
Alex Lu asked 10.07.2020 at 08:28:
> For example, when I type:
> 
> alias ll='ls -lh'
> 
> it works just fine, but after restarting the VM (either appVM or
> templateVM), I have to do all over it again.

This question is not really Qubes OS specific.  

If you want these aliases to persist you have to put them into the 
"run commands" file of your command line interpreter (the shell).  
This is most likely the BASH.
(see https://en.wikipedia.org/wiki/Bash_(Unix_shell) for more information).
The usual "run commands" file of the your BASH is called "$HOME/.bashrc".

So you could either use an text editor of your choice to edit this file
or you could append the alias commands to this file by typing:

echo "alias ll='ls -lh'" >>$HOME/.bashrc

Luckily the $HOME directory is located in /rw of your appVM so these
edits should persist after a restart of either type of VM.

Regards, Peter Funk
-- 
Peter Funk ✉:Oldenburger Str.86, 2 Ganderkesee, Germany; :+49-179-640-8878 
✉office: ArtCom GmbH, Haferwende 2, D-28357 Bremen, Germany
☎office:+49-421-20419-0 

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20200710091657.GD12515%40pfmaster-P170EM.
-BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.4.12 (GNU/Linux)

mQGiBEDUE2ERBACj3D1taoubhECjVe/QMp0FJXdHC5IZ9l/CUb0HDez+WjiERCvg
NqP+Qj/Ot1hmNETitXhskNu/wIqmukHRGsozgEC+6j9jLGDh16Hh2l0npUUZIWz+
yZnLY5BwGNCDsgERw4vVkbm+MgmQaED4tFuFbToc3FIQM1wTx04OgdUcPwCg0xEV
VY7ODo/A0QDD6Vn1NX8qjOMD/j83AbRI9nUxdDwwoG0pd47Dr4F1b4bEtnJlqlZP
X4G3UeKPlCfCoq2MLmLK5dNThCV264C8GxbLRmG9y6L5z2Ma1cXhcIjyRtzaHrEL
ERYqa01G09D/2lW/vRiK+bOS5glJE+CLIDsefrsTV1YD/pV7RXb6CR97KZuUWJDh
WCYpBACE2mmFmxLbM/XvKDIqyIUq6pvCUAoOa5TwPN50evYb4gatdbMBJDeUwXrx
gvkQx/rGdXG/U/aJLQx0Gl2ZlVdfnXh6dS5yyrSBPKgRBasgHzuIewE4lDXf8770
VI/G5S6vpv+OSGBF8XGgqRxT+5UjwlPYDe3SoDUtBbUrcUFoSLReUGV0ZXIgRnVu
ayAoMDQyMjItOTUwMjgwLCBPbGRlbmJ1cmdlciBTdHIuODYsIEQtMjc3NzcgR2Fu
ZGVya2VzZWUpIDxwZkBhcnRjb20wLmFydGNvbS1nbWJoLmRlPohfBB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
HQhVjFRavH3oRlOOs3JqKstY2irn4n+Mf2arfT7HVVXQ7uJ7mJTFLFMIXtBEp2SQ
iPKlX4Yq+UL4Lp1UfIk/wy+J2m+HfEHiWx0nxJqcXh7UrK1kl0GC6vLiSyubgxXM
5InnjtHs4FJDS6bdxGZ4ml/cZNf0EfFG40DSg9jr2s+GNLu/KMy6dcarpyamLVnC
rM+nmQXRjwJFyYSxVXJG+vlr4WeJfCsPj+D4PeItHt9Y8FfEnxv4Yh1CESzCG4s7
zV9Nt5XhubV4z9nvLWRLeZ4Z1ElncO0bIDE57+BONs0+sqOMhKtT92fvWj7SlBx9
pyN6Tk6ako2bvUUbppu/l/SA8IeF8syt5pkMaNCvRryjUoRqQlCMm6ajKcKU5uKU
nGnNWTjJ8ujWn48f8JZ8XdC0yWa28T/EfTp1u7Z7QTaA1hZJpbQXL3UcsMFmuoXe
pPL9hS0VodPsOJ5JrgpJFKlj/hfXju0sF1CXx5rfnofJuNN1HUNdhufPWG5dFKR3
FvFKGWNYUlSG3jNxKRK0UcYmm/rJv/8Agmv+ype7/s/w6l0rbI0sb6ZrWqrJA7Iq

[qubes-users] How to make aliases persistent?

2020-07-10 Thread Alex Lu

For example, when I type:

alias ll='ls -lh'

it works just fine, but after restarting the VM (either appVM or 
templateVM), I have to do all over it again.


--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/f4bdeff4752aba424b3e2a7e2ee85175%40cock.li.