perplexity-cli
π§ A simple command-line client for the Perplexity API. Ask questions and receive answers directly from the terminal! πππ
π Modular and easy to customize dotfiles framework
dotly is a dotfiles framework built on top of zim, one of the fastest zsh existing frameworks. It creates an opinionated dotfiles structure to handle all your configs and scripts.
Using wget:
bash <(wget -qO- https://raw.githubusercontent.com/CodelyTV/dotly/HEAD/installer)
Or using curl:
bash <(curl -s https://raw.githubusercontent.com/CodelyTV/dotly/HEAD/installer)
You can safely install additional software and make any changes to the file system. Once you exit zsh the image is deleted.
docker run -e TERM -e COLORTERM -e LC_ALL=C.UTF-8 -w /root -it --rm alpine sh -uec ' apk add curl sudo bash zsh git g++ python3 bash -c "$(curl -fsSL https://raw.githubusercontent.com/CodelyTV/dotly/HEAD/installer)" zsh'
docker run -e TERM -e COLORTERM -w /root -it --rm ubuntu sh -uec ' apt-get update apt-get install -y curl build-essential sudo su -c bash -c "$(curl -fsSL https://raw.githubusercontent.com/CodelyTV/dotly/HEAD/installer)" su -c zsh'
git clone [your repository of dotfiles] $HOME/.dotfilescd $HOME/.dotfilesgit submodule update --init --recursive modules/dotlyDOTFILES_PATH="$HOME/.dotfiles" DOTLY_PATH="$DOTFILES_PATH/modules/dotly" "$DOTLY_PATH/bin/dot" self installdot package importUsing wget
bash <(wget -qO- https://raw.githubusercontent.com/CodelyTV/dotly/HEAD/restorer)
Using curl
bash <(curl -s https://raw.githubusercontent.com/CodelyTV/dotly/HEAD/restorer)
π You need to know your GitHub username, repository and install ssh key if your repository is private.
It also supports other git repos, but you need to know your git repository url.
Once dotly is installed, the next step is to commit and push your dotfiles. Create a new repository in your GitHub
named dotfiles and then copy the url. Then go to your dotfiles (cd "$DOTFILES_PATH") and execute:
git remote add origin YOUR_DOTFILES_REPO_URL && git add -A && git commit -m "Initial commit" && git push origin main
β οΈ It's recommended to commit every time you add/modify a config or script.
dot commanddot is the core command of dotly. If you execute it, you'll see all your scripts.
{βΈ} ~ dot -h
Usage:
dot
dot <context>
dot <context> <script> [<args>...]
dot -h | --help
βββ π bin # External binaries/symlinks. This folder has preference in your $PATH βββ π doc # Documentation of your dotfiles βββ π editors # Settings of your editors (vscode, IDEA, β¦) βββ π git # git config βββ π langs # Config for programming languages/libraries βββ π os # Specific config of your Operative System or apps βββ π restoration_scripts # This will be execute when you restore your dotfiles in another computer/installation βββ π scripts # Your custom scripts βββ π shell # Bash/Zsh/Fish?β¦ configuration files βββ π symlinks # The config of your symlinks
dotly allows you to version your apps' config files. Once you've found the config to version you should:
cp ~/Library/Application Support/Code/User/settings.json $DOTFILES_PATH/editors/code/settings.json$DOTFILES_PATH/symlinks/conf.YOUR-OS.yaml and add it.
E.g. ~/Library/Application Support/Code/User/settings.json: editors/code/settings.jsondotly includes an opinionated, minimal, very fast and powerful theme by default. You can configure it using the
following parameters in your shell/exports.sh:
CODELY_THEME_MINIMAL=false|true # If true the theme will only show the prompt status CODELY_THEME_MODE="dark"|"light" # Use dark if you use dark colors, light if light CODELY_THEME_PROMPT_IN_NEW_LINE=false|true # If true the prompt will be in a newline CODELY_THEME_PWD_MODE="short"|"full"|"home_relative" # short will show the first letter of each directory, full the full path and home_relative the full path relative to the $HOME dir CODELY_THEME_STATUS_ICON_KO="βͺ" # The icon to show if the previous command failed. Useful if you're color blind
βββ π dotfiles
β βββ create # Creates the dotfiles scructure
β βββ import # Import an existing dotfiles
βββ π git
β βββ amend # Amend a commit
β βββ apply-gitignore # Exlude all commited files that are inside the project .gitignore
β βββ changed-files # Show all changed files to main
β βββ commit # Add all files and then commit
β βββ contributors # List contributors with number of commits
β βββ find # Find commits by commit message
β βββ pretty-diff # Show a pretty git diff using fzf (and copy selected path to the clipboard)
β βββ pretty-log # Git log filtering
β βββ rm-file-history # Remove completely a file from the repo with its history
βββ π mac
β βββ brew # Some brew utils
β βββ defaults # Some defaults utils to view your changes, import and export
βββ π package
β βββ add # Install a package
β βββ dump # Dump all installed packages
β βββ import # Import previously dumped packages
β βββ update_all # Update all packages
βββ π self # Instead of `dot self` you can use direclty `dotly` in your terminal
β βββ debug # Debug dotly
β βββ install # Install dotly and setup dotfiles
β βββ lint # Lint all dotly related bash files
β βββ static_analysis # Static analysis of all dotly related bash files
β βββ update # Update dotly to the latest stable release
βββ π shell
β βββ zsh # ZSH helpers
βββ π symlinks
βββ apply # Apply all symlinks
You can see the default aliases here. The most commonly used are:
..: cd one directory upla: ls all files/dirs with colorsup: Update all your package managers packagesFor an in-depth look at the features offered by dotly, you can take a look at this video:
You can execute dot self debug in parallel with another command to see the errors output.
A lot of dotly concepts has been inspired by denisidoro/dotfiles
MIT Β© CodelyTV
more like this
π§ A simple command-line client for the Perplexity API. Ask questions and receive answers directly from the terminal! πππ
search projects, people, and tags