add env source
This commit is contained in:
parent
42ee074791
commit
2d5351fbc4
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,11 @@
|
|||
# basics
|
||||
# Check if ~/.config/environment exists and source all files within it
|
||||
if [ -d "$HOME/.config/environment" ]; then
|
||||
for file in "$HOME/.config/environment/"*; do
|
||||
[ -r "$file" ] && . "$file"
|
||||
done
|
||||
fi
|
||||
|
||||
# Basics
|
||||
htop_psg () {
|
||||
htop -p $(psg $1 | awk '{r=r s $2;s=","} END{print r}')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue