15 lines
279 B
Bash
15 lines
279 B
Bash
#!/bin/zsh
|
|
newtheme(){
|
|
sh $XDG_CONFIG_HOME/sway/colors.sh $1
|
|
}
|
|
|
|
lfcd(){
|
|
tmp="$(mktemp)"
|
|
lfrun -last-dir-path="$tmp" "$@"
|
|
if [ -f "$tmp" ]; then
|
|
dir="$(cat "$tmp")"
|
|
rm -f "$tmp"
|
|
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
|
|
fi
|
|
}
|