Minor updates
This commit is contained in:
parent
576b7af65f
commit
6fb403a091
@ -94,6 +94,7 @@ remove() {
|
|||||||
if [[ "$1" = "-s" ]]; then
|
if [[ "$1" = "-s" ]]; then
|
||||||
# Be quiet!
|
# Be quiet!
|
||||||
SILENT=1
|
SILENT=1
|
||||||
|
shift
|
||||||
fi
|
fi
|
||||||
if [[ $SILENT = 1 ]]; then
|
if [[ $SILENT = 1 ]]; then
|
||||||
\mv -t "$TMP_PATH" $* 2>/dev/null
|
\mv -t "$TMP_PATH" $* 2>/dev/null
|
||||||
|
@ -89,6 +89,15 @@ dsl() {
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
# Update the sync project
|
||||||
|
update-sync-project() {
|
||||||
|
if [[ ! -L ~/.zshrc ]]; then
|
||||||
|
echo "zshrc isn't a link"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
local ABSPATH="$(\dirname "$(\dirname "$(\readlink -e ~/.zshrc)")")"
|
||||||
|
git -C "$ABSPATH" pull origin master
|
||||||
|
}
|
||||||
# Remove directory by removing subdirectories up a level
|
# Remove directory by removing subdirectories up a level
|
||||||
dedir(){
|
dedir(){
|
||||||
# Try removing the directory if it's empty, fail silently if you can't
|
# Try removing the directory if it's empty, fail silently if you can't
|
||||||
|
Loading…
Reference in New Issue
Block a user