mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-11-05 09:22:42 +01:00
Compare commits
2 commits
f0bf01386b
...
d7902bc188
| Author | SHA1 | Date | |
|---|---|---|---|
| d7902bc188 | |||
| e7f78c8be5 |
2 changed files with 22 additions and 0 deletions
|
|
@ -20,6 +20,22 @@ l () {
|
|||
return
|
||||
fi
|
||||
|
||||
# Current directory is the user home directory
|
||||
if [ "$(pwd)" == "$HOME" ]; then
|
||||
# Ignore these files when running the "l" command from the home directory
|
||||
local BLACKLIST=("Makefile")
|
||||
|
||||
local pattern
|
||||
local pattern_ignore
|
||||
|
||||
for pattern in "${BLACKLIST[@]}"; do
|
||||
pattern_ignore+="-I \"$pattern\" "
|
||||
done
|
||||
|
||||
eval ls -lh $pattern_ignore
|
||||
return 0
|
||||
fi
|
||||
|
||||
ls -lh $1 || l $(dirname "$1")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,3 +13,9 @@ export GPG_TTY=$(tty)
|
|||
export S="/var/www/sites"
|
||||
export V="/var/www/fw/vegvisir/"
|
||||
export R="/var/www/fw/reflect/"
|
||||
|
||||
# Add XDG Base Directory specifications
|
||||
export XDG_BIN_HOME="$HOME/.local/bin"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
Loading…
Add table
Reference in a new issue