diff --git a/common/bin/install-firefox-user-chrome-css.fish b/common/bin/install-firefox-user-chrome-css.fish index 7df62e5..94cab31 100755 --- a/common/bin/install-firefox-user-chrome-css.fish +++ b/common/bin/install-firefox-user-chrome-css.fish @@ -1,8 +1,8 @@ #!/usr/bin/env fish -set profile_dirs $HOME/.mozilla/firefox/*.dev-edition-default +set profile_dirs $HOME/.mozilla/firefox/*.dev-edition-default $HOME/.mozilla/firefox/*.default-release if test (uname) = Darwin - set profile_dirs $HOME/Library/Application\ Support/Firefox/Profiles/*.dev-edition-default + set profile_dirs $HOME/Library/Application\ Support/Firefox/Profiles/*.dev-edition-default $HOME/.mozilla/firefox/*.default-release end for p in $profile_dirs diff --git a/common/bin/pbin b/common/bin/pbin deleted file mode 100755 index 93b10be..0000000 --- a/common/bin/pbin +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -f="${1}" -uuid="$(uuidgen -t)" -upload "${f}" "${uuid}/$(basename "$f")" "pastes" diff --git a/common/bin/upload b/common/bin/upload deleted file mode 100755 index 486819d..0000000 --- a/common/bin/upload +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env sh - -# TODO: progress bar! - -HOST="faceless" - -f="${1}" - -[ "${f}" = "" ] && echo "No file provided. Exiting." >&2 && exit 2 -[ ! -e "${f}" ] && echo "File '$f' does not exist. Exiting." >&2 && exit 1 - -is_dir="$([ ! -e "${f}" ]; echo "$?")" - -set -xe - -fname="${2:-$(basename "${f}")}" -subdir="${3:-uploads}" -internal_dir="/home/daniel/public-static-files/${subdir}" -url="https://files.lyte.dev/${subdir}/${fname}" - -if [ "$(curl -s -o /dev/null -w "%{http_code}" "${url}")" -eq 200 ]; then - echo "ERROR: A file already exists at ${url}" - exit 3 -fi - -flags=644 -code="" -if [ "$is_dir" = "0" ]; then - ssh "$HOST" mkdir -p "$(dirname "${internal_dir}/${fname}")" - rsync --progress --no-owner --no-group --chmod="$flags" --ignore-existing \ - "${f}" "${HOST}:${internal_dir}/${fname}" | tee "${HOME}/.upload.log" - code="$?" -else - ssh "$HOST" mkdir -p "${internal_dir}/${fname}" - flags=755 - rsync --recursive --progress --no-owner --no-group --chmod="$flags" \ - "${f}" "${HOST}:${internal_dir}" | tee "${HOME}/.upload.log" - code="$?" -fi - -if [ "$code" -ne 0 ]; then - printf "ERROR: The file failed to upload - perhaps rsync failed for some reason?\n See \"%s/.upload.log\" for details\n" "$HOME" -else - echo "Uploaded to: ${url}" -fi diff --git a/common/helix/languages.toml b/common/helix/languages.toml index dd19718..002055e 100644 --- a/common/helix/languages.toml +++ b/common/helix/languages.toml @@ -29,3 +29,7 @@ roots = ["deno.json", "package.json", "tsconfig.json"] config = { enable = true, lint = true, unstable = true } language-server = { command = "deno", args = ["lsp"], language-id = "typescriptreact" } auto-format = true + +[[language]] +name = "elixir" +auto-format = true diff --git a/common/tmux/conf b/common/tmux/conf index 3355116..aca309b 100644 --- a/common/tmux/conf +++ b/common/tmux/conf @@ -43,7 +43,6 @@ set -g window-status-current-format " #W" set -g status-right "" set -g status-left "#h:#S #W " set -ag status-left "#(pwd | $XDG_CONFIG_HOME/lytedev-dotfiles/common/bin/glancepath) " - set -ag status-left "#(cd '#{pane_current_path}' && git rev-parse --abbrev-ref --sq HEAD | tr -d \"'\")" set -ag status-left "#(kubeline && printf ' ')" set -g status-left-length 1000 # set -g status-right-length 280