rpi-4: add 'l' and 'la' aliases to /etc/profile
This commit is contained in:
9
configs/rpi-4-files/etc/uci-defaults/90-profile-aliases
Normal file
9
configs/rpi-4-files/etc/uci-defaults/90-profile-aliases
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# add some commonly used aliases
|
||||||
|
file=/etc/profile
|
||||||
|
grep -q "alias l" ${file} ||
|
||||||
|
cat <<EOF >> ${file}
|
||||||
|
alias l='ls -lF'
|
||||||
|
alias la='ls -alF'
|
||||||
|
EOF
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Read all about UCI defaults at
|
# Read all about UCI defaults at
|
||||||
# https://openwrt.org/docs/guide-developer/uci-defaults)
|
# https://openwrt.org/docs/guide-developer/uci-defaults
|
||||||
|
|
||||||
# Note that scripts in /etc/uci-defaults will get executed at *every* first
|
# Note that scripts in /etc/uci-defaults will get executed at *every* first
|
||||||
# boot (i.e. after both factory install as well as upgrades),
|
# boot (i.e. after both factory install as well as upgrades),
|
||||||
# possibly overwriting already existing values!
|
# possibly overwriting already existing values!
|
||||||
|
# scripts in this dir should *not* be executable
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user