mirror of
https://github.com/minefuto/qwertycd
synced 2026-01-14 02:51:40 +00:00
No description
| .github/workflows | ||
| example | ||
| gif | ||
| src | ||
| .gitignore | ||
| LICENSE | ||
| qwertycd.nimble | ||
| README.md | ||
qwertycd
This is terminal UI based cd command written in Nim.
Features
- Change directory
- Bookmark directory
- History of change directory
- Preview file
- Open file with $EDITOR
Getting Started
1. Install the qwertycd binary.
nimble install qwertycd
Or, download the binary from Release Page and drop it in your $PATH.
https://github.com/minefuto/qwertycd/releases
2. Add the following to shell's config file.
Bash(.bashrc)
function qcd() {
qwertycd
cd "`cat $HOME/.qwertycd/cache_dir`"
}
Zsh(.zshrc)
function qcd() {
qwertycd
cd "`cat $HOME/.qwertycd/cache_dir`"
}
Fish(config.fish)
function qcd
qwertycd
cd (cat $HOME/.qwertycd/cache_dir)
end
PowerShell(Microsoft.PowerShell_profile.ps1)
function qcd() {
qwertycd
$path = $env:HOMEPATH + "\.qwertycd\cache_dir"
$file = Get-Content $path
Set-Location $file
end
Configurations
Download qwertycd.toml from the following and edit.
https://github.com/minefuto/qwertycd/blob/master/example/qwertycd.toml
macOS/Linux
Put to $HOME/.qwertycd/qwertycd.toml
Windows
Put to env:HOMEPATH\.qwertycd\qwertycd.toml
Supported OS
macOS, Linux, Windows