资源说明:Shell scripts for applying default settings to UNIX-based operating systems.
:toc: macro :toclevels: 5 :figure-caption!: = Dotfiles These are shell scripts for applying default settings to UNIX-based operating systems. These are a collection of useful shortcuts, performance augmentation, and advanced practices that, even if you don't apply to your own dotfiles, should be educational for improving your own practices. By default, these are set to my preferences (namely for macOS) but you can change them to your liking by editing any of the `.tt` template files in the `home_files` directory. Read on to learn more. toc::[] == Features * Configures link:https://github.com/amazing-print/amazing_print[Amazing Print] (`.aprc`). * Configures Bash (`.config/bash`, `.bashrc`, `.bash_profile`, and `.inputrc`). * Configures link:http://bash-completion.alioth.debian.org[Bash Completion]. * Configures link:http://ctags.sourceforge.net[CTags] (`.ctags`). * Configures link:https://direnv.net[direnv]. * Configures link:https://www.docker.com[Docker]. * Configures link:https://the.exa.website[Exa]. * Configures link:https://github.com/tako8ki/frum[Frum]. * Configures link:https://git-scm.com[Git] (`.config/git`). * Configures link:https://www.gnupg.org[GPG]. * Configures `.hushlogin`. * Configures link:https://nodejs.org[Node.js]. * Configures link:https://www.npmjs.org[NPM] (`.npmrc`). * Configures link:https://www.postgresql.org[PostgreSQL] (`.psqlrc`). * Configures link:https://voormedia.github.io/rails-erd[Rails ERD] (`.erdconfig`). * Configures link:https://rspec.info[RSpec] (`.rspec`). * Configures link:https://www.ruby-lang.org[Ruby] (`.ruby-version` and `.irbrc`). * Configures link:http://bashdb.sourceforge.net/ruby-debug.html[Ruby Debugger] (`.rdebugrc`). * Configures link:https://rubygems.org[Ruby Gems] (`.gemrc`). * Configures link:https://github.com/bbatsov/rubocop[Rubocop] (`.rubocop.yml`). * Configures link:https://www.rust-lang.org[Rust]. * Configures link:https://github.com/ggreer/the_silver_searcher[Silver Surfer] (`.agignore`). * Configures link:https://www.sublimetext.com[Sublime Text]. * Configures link:https://www.vim.org[Vim] (`.vimrc`). * Configures link:https://www.terraform.io[Terraform]. * Configures link:https://github.com/ajeetdsouza/zoxide[Zoxide]. == Screencasts [link=https://www.alchemists.io/screencasts/dotfiles] image::https://www.alchemists.io/images/screencasts/dotfiles/cover.svg[Screencast,600,240,role=focal_point] == Requirements . link:https://www.alchemists.io/projects/mac_os-config[macOS Configuration] == Setup To install, run: [source,bash] ---- git clone https://github.com/bkuhlmann/dotfiles.git cd dotfiles git checkout 46.3.0 ---- == Upgrade When upgrading to a new version, run the following: . Run: `bin/run l`. Links new files. If not using linked files, run `bin/run d` and `bin/run i` instead. . Run: `bin/run c`. Displays file differences, if any. Usually, this will be excluded files. . Run: `exec $SHELL`. Updates current shell with the above changes. == Usage Edit any of the `.tt` (template) and/or `.command` (command) files in the `home_files` directory as you see fit. Then open a terminal window and execute the following command to install: [source,bash] ---- cd dotfiles bin/run ---- Executing the `bin/run` script will present the following options: .... s: Show managed dotfiles. i: Install dotfiles (existing files are skipped). l: Link dotfiles to this project (interactive per file, excludes: env.sh and .gitconfig). c: Check for differences between $HOME files and this project's files. d: Delete dotfiles (interactive per file, excludes: env.sh and .gitconfig). q: Quit/Exit. .... The options prompt can be skipped by passing the desired option directly to the `bin/run` script. For example, executing `bin/run s` will show all managed dotfiles by this project. After install, the following files will require manual updating: * `.bash/env.sh`: Add secret/machine-specific environment settings (if any). * `.gitconfig`: Uncomment the name, email, and token lines within the `[user]` and `[github]` sections to replace with your own details. === Aliases ==== https://asciidoctor.org:[ASCII Doctor] .... ad = "asciidoctor" .... ==== https://asciinema.org:[asciinema] .... cin = "asciinema" cina = "asciinema rec --append" cinc = "asciinema cat" cine = "asciinema_plus -e" cinp = "asciinema play" cinu = "asciinema upload" .... ==== https://www.gnu.org/software/bash:[Bash] .... bashe = "$EDITOR $HOME/.config/bash/env.sh" bashs = "exec $SHELL" .... ==== https://bundler.io:[Bundler] .... ba = "bundle add" bb = "bundle binstubs" bce = "$EDITOR $HOME/.config/bundler/configuration.yml" bch = "rm -f Gemfile.lock; bundle check" bd = "bundle doctor" be = "bundle exec" bi = "bundle install" blo = "bundle list --paths | fzf | xargs $EDITOR" bo = "bundle outdated --only-explicit" br = "bundle remove" bu = "bundle update" .... ==== https://crystal-lang.org:[Crystal] .... cr = "crystal" crb = "crystal build" crd = "crystal docs" crdo = "open docs/index.html" crr = "crystal run" crs = "crystal spec" .... ==== https://direnv.net:[direnv] .... denva = "direnv allow" denvr = "direnv reload" denvs = "direnv status" .... ==== https://www.docker.com:[Docker] .... dr = "docker" drb = "docker build" drc = "docker-compose" drd = "docker system prune --force && docker buildx prune --force" dri = "docker images" drp = "docker ps --all" drt = "docker tag" .... ==== http://duti.org:[duti] .... dutia = "duti $HOME/.config/duti/configuration.duti" .... ==== https://elm-lang.org:[Elm] .... elmc = "elm repl" elmg = "elm init" elmi = "elm install" elmp = "elm publish" elms = "elm reactor" elmt = "elm-test" .... ==== https://the.exa.website:[Exa] .... x1 = "exa --oneline --all --group-directories-first" x = "exa --all --all --long --header --group --group-directories-first --time-style long-iso --git" xt = "exa --all --group-directories-first --ignore-glob '*.git' --git-ignore --tree" .... ==== https://github.com/junegunn/fzf:[Fuzzy Finder] .... ff = "fzf --preview 'bat --theme DarkNeon --color always {}' | xargs $EDITOR" .... ==== https://www.alchemists.io/projects/gemsmith:[Gemsmith] .... gsb = "gemsmith --build" gsc = "gemsmith --config edit" gse = "gemsmith --edit" gsi = "gemsmith --install" gso = "gemsmith --open" gsp = "gemsmith --publish" gsq = "rake code_quality" gsv = "gemsmith --view" .... ==== General .... ... = "cd ../.." .. = "cd .." c = "clear" cat = "bat --theme DarkNeon" cdb = "cd -" du = "ncdu -e --color dark" h = "history" l1 = "ls -A1 | _copy_and_print '\n'" l = "ls -alhT" o = "open" p = 'pwd | tr -d "\r\n" | _copy_and_print' pss = "pgrep -i -l -f" rmde = "find . -type d -empty -not -path '*.git*' -delete" .... ==== https://git-scm.com:[Git] .... ga = "git add" gall = "git add --all ." gamend = "git commit --amend" gamenda = "git commit --amend --all --no-edit" gamendh = "git commit --amend --no-edit" gap = "git add --patch" gashc = "git stash clear" gatch = "git commit --patch" gau = "git add --update" gb = "git switch" gbb = "git switch -" gbe = "git branch --edit-description" gbi = "git bisect" gbib = "git bisect bad" gbig = "git bisect good" gbih = "git bisect help" gbil = "git bisect log" gbir = "git bisect reset" gbire = "git bisect replay" gbis = "git bisect start" gbisk = "git bisect skip" gbiv = 'git bisect visualize --reverse --pretty=format:"$(_git_log_line_format)"' gbm = 'git switch $(_git_branch_default)' gbn = "_git_branch_name | _copy_and_print" gbt = "git show-branch --topics" gca = "git commit --all" gcam = "git commit --all --message" gcd = "git config --list --show-origin --show-scope" gce = 'cat .git/COMMIT_EDITMSG | rg --invert-match "^\#.*" | pbcopy' gcge = "git config --global --edit" gcl = "git clone" gcle = "git config --local --edit" gcm = "git commit --message" gco = "git commit" gcp = "git cherry-pick" gcpa = "git cherry-pick --abort" gcps = "git cherry-pick --skip" gcs = "git commit --squash" gd = "git diff" gdc = "git diff --cached" gdm = 'git diff origin/$(_git_branch_default)' gdo = 'git diff --name-only | uniq | xargs $EDITOR' gdt = "git difftool" gdtc = "git difftool --cached" gdtm = 'git difftool origin/$(_git_branch_default)' gdw = "git diff --color-words" gel = "git rm" gelc = "git rm --cached" # Removes previously tracked file from index after being added to gitignore. ges = "git reset" gf = "git fetch" gg = "git grep" gget = "git config --get" gi = "git init && git config --global --add maintenance.repo $PWD" gl = 'git log --graph --pretty=format:"$(_git_log_line_format)"' glame = "git blame -M -C -C -C" glean = "git clean -d --force" glf = 'git fetch && git log --reverse --no-merges --pretty=format:"$(_git_log_line_format)" ..@{upstream}' glg = 'git log --pretty=format:"$(_git_log_line_format)" --grep' glh = "_git_commit_last | _copy_and_print" gls = 'git log --pretty=format:"$(_git_log_line_format)" -S' glt = 'git for-each-ref --sort=taggerdate --color --format = "%(color:yellow)%(refname:short)%(color:reset)|%(taggerdate:short)|%(color:blue)%(color:bold)%(*authorname)%(color:reset)|%(subject)" refs/tags | column -s"|" -t' gna = "git notes add" gnd = "git notes remove" gne = "git notes edit" gnl = "git notes list" gnp = "git notes prune" gns = "git notes show" gpf = "git push --force-with-lease" gpn = "git push --no-verify" gpo = "git push --set-upstream origin" gpu = "git pull" gpuo = "git pull origin" gpuom = 'git pull origin $(_git_branch_default)' gpuum = 'git pull upstream $(_git_branch_default)' gr = "git restore" grba = "git rebase --abort" grbc = "git rebase --continue" grbd = "git rebase --show-current-patch" grbo = "git rebase --onto" grbs = "git rebase --skip" grbt = "git rebase --edit-todo" grev = "git revert --no-commit" grl = "git reflog" grom = 'git fetch --all && git reset --hard origin/$(_git_branch_default)' # Reset local branch to origin/main branch. UNRECOVERABLE! grr = "git rerere" gset = "git config --add" gst = "git status --short --branch" gtag = "git tag" gtags = "git push --tags" gtagv = "git tag --verify" guthors = 'git log --color --pretty=format:"%C(bold blue)%an%C(reset)" | sort | uniq -c | sort --reverse' gwl = "git worktree list" gwp = "git worktree prune" .... ==== https://github.com/TaKO8Ki/frum:[Frum] .... rbi = "frum install" rbl = "frum local" rbg = "frum global" rbu = "frum uninstall" rbv = "frum versions" .... ==== https://brew.sh:[Homebrew] .... hb = "brew" hbd = "brew doctor" hbi = "brew install" hbin = "brew info" hblc = "brew list --casks --versions | fzf" hblf = "brew list --formulae --versions | fzf" hbp = "brew pin" hbpu = "brew unpin" hbs = "brew search" hbsu = "brew update && brew upgrade && brew cleanup" hbu = "brew uninstall" hbug = "brew update && brew upgrade" .... ==== https://trac.webkit.org/wiki/JSC:[JavaScript Core] .... jsc = "/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Helpers/jsc" .... ==== https://jless.io:[jless] .... jlr = "jless --mode line" .... ==== https://marked2app.com:[Marked 2] .... mo = "open -a Marked\ 2" .... ==== https://www.alchemists.io/projects/milestoner:[Milestoner] .... ms = "milestoner" mss = 'milestoner --status | _copy_and_print "\n"' mse = "milestoner --config --edit" msp = "milestoner --publish" .... ==== Network .... dnsf = "sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder && printf 'DNS cache cleared.\n'" dnsi = "scutil --dns" dnss = "sudo dscacheutil -statistics" ipa = 'curl --silent checkip.dyndns.org | rg --only-matching "[0-9\.]+" | _copy_and_print' key = "open /Applications/Utilities/Keychain\ Access.app" ping = "gping" sshe = "$EDITOR $HOME/.ssh/config" top = "htop" .... ==== https://cocoatech.com:[Path Finder] .... pfo = 'open -a "Path Finder.app" "$PWD"' .... ==== https://www.postgresql.org:[PostgreSQL] .... pgi = "initdb $HOMEBREW_PREFIX/var/postgres" pgsp = "pg_ctl -D $HOMEBREW_PREFIX/var/postgres stop -s -m fast" pgst = "pg_ctl -D $HOMEBREW_PREFIX/var/postgres -l $HOMEBREW_PREFIX/var/postgres/server.log start &" .... ==== https://redis.io:[Redis] .... redc = "redis-cli" reds = "redis-server $HOMEBREW_PREFIX/etc/redis.conf &" .... ==== https://github.com/BurntSushi/ripgrep:[ripgrep] .... rgf = "rg --files --glob" .... ==== https://rspec.info:[RSpec] .... rsf = "rspec spec --only-failures" rsn = "rspec spec --next-failure" rso = "rspec spec --dry-run --format doc > tmp/rspec-overview.txt && e tmp/rspec-overview.txt" rss = "rspec spec" rst = "rspec spec --tag" .... ==== https://github.com/bbatsov/rubocop:[Rubocop] .... cop = "rubocop --parallel --display-cop-names --display-style-guide" copc = "rubocop --auto-gen-config" copd = 'rm -f $HOME/.config/rubocop/.rubocop-http* && find . -name ".rubocop-http*" -type f -delete' copf = "rubocop --auto-correct" copfo = "rubocop --auto-correct --only" copo = "rubocop --display-cop-names --only" cops = "rubocop --show-cops" .... ==== https://www.ruby-lang.org:[Ruby] .... rbbe = "$EDITOR $HOME/Engineering/Misc/benchmark.rb" rbbr = "ruby $HOME/Engineering/Misc/benchmark.rb" rbse = "$EDITOR $HOME/Engineering/Misc/snippet.rb" rbsr = "ruby $HOME/Engineering/Misc/snippet.rb" .... ==== https://rubyonrails.org:[Ruby on Rails] .... railsb = "rails console --sandbox" railse = "EDITOR = 'sublime --wait' rails credentials:edit" .... ==== https://github.com/whitesmith/RubyCritic:[RubyCritic] .... rbct = "open tmp/rubycritic/overview.html" .... ==== https://rubygems.org:[RubyGems] .... gemc = "gem cleanup" gemcli = "rg 'spec\.executables' --no-messages --max-depth=2 --files-with-matches gemspec . | xargs basename | cut -d. -f1 | sort | _copy_and_print '\n'" gemcr = "$EDITOR $HOME/.gem/credentials" geme = "gem environment" gemi = "gem install" geml = "gem list" gemp = "gem pristine" gemu = "gem uninstall" gemuc = "gem update --system && gem update && gem cleanup" .... ==== https://www.alchemists.io/projects/rubysmith:[Rubysmith] .... rbb = "rubysmith --build" rbh = "rubysmith --help" .... ==== https://github.com/colszowka/simplecov:[SimpleCov] .... cov = "open coverage/index.html" .... ==== https://www.sublimetext.com:[Sublime Text] .... e = "sublime" .... ==== https://www.gnu.org/software/tar/tar.html:[Tar] .... bzc = "tar --use-compress-program=pigz --create --preserve-permissions --bzip2 --verbose --file" bzx = "tar --extract --bzip2 --verbose --file" .... ==== https://www.terraform.io:[Terraform] .... tf = "terraform" tfa = "noti --title 'Terraform Apply' terraform apply" tfc = "terraform console" tff = "terraform fmt" tfg = "terraform graph | dot -Tsvg > tmp/graph.svg && open -a 'Firefox.app' tmp/graph.svg" tfi = "terraform init" tfo = "terraform output" tfp = "noti --title 'Terraform Plan' terraform plan" tft = "terraform taint" tfu = "terraform untaint" tfv = "terraform validate" .... ==== http://tmux.sourceforge.net:[tmux] .... tsa = "tmux attach-session -t" tsk = "tmux kill-session -t" tsl = "tmux list-sessions" tsr = "tmux rename-session -t" .... ==== https://gitlab.com/procps-ng/procps:[Watch] .... wp = "watch --interval 1 --color --beep --exec" .... === Functions ==== link:https://asciidoctor.org[ASCII Doctor] .... ado = ASCII Doctor Open - Transforms ASCII Doc into HTML and opens in default browser. .... ==== https://asciinema.org:[asciinema] .... cinr = asciinema Record - Create new asciinema recording. .... ==== https://bundler.io:[Bundler] .... bca = Bundler Clean (all) - Clean projects of gem artifacts (i.e. pkg folder). bcg = Bundler Config Gem - Configure Bundler to use local gem for development purposes. bj = Bundler Jobs - Answer maximum Bundler job limit for current machine or automatically set it. bl = Bundle List - List gem dependencies for project and copy them to clipboard. boa = Bundle Outdated (all) - Answer outdated gems for projects in current directory. bua = Bundle Update (all) - Update gems for projects in current directory. .... ==== https://www.alchemists.io/projects/caliber:[Code Quality] .... cqa = Code Quality (all) - Run code quality tasks for projects in current directory. cqi = Code Quality Issues - List all source files affected by code quality issues. .... ==== https://curl.se:[curl] .... curld = Curl Diagnostics - Curl with diagnostic information for request. curli = Curl Inspect - Inspect remote file with default editor. .... ==== Dotfiles .... dots = Dotfiles - Learn about dotfile aliases, functions, etc. .... ==== https://elm-lang.org:[Elm] .... elml = Elm Live - Watch for source code changes and recompile immediately. elmm = Elm Make - Compile Elm source. .... ==== General .... cype = Colorized Type - Identical to "type" system command but with Bat support. eup = Environment Update - Update environment with latest software. iso = ISO - Builds an ISO image from mounted volume. kilp = Kill Process - Kill errant/undesired process. t2s = Tab to Space - Convert file from tab to space indentation. .... ==== https://git-scm.com:[Git] .... gafe = Git Safe - Marks repository as safe for auto-loading project's `bin` path. galla = Git Add (all) - Apply file changes (including new files) for projects in current directory. gash = Git Stash - Creates stash of all changes. gasha = Git Stash (all) - Answer stash count for projects in current directory. gashd = Git Stash Drop - Drop stash or prompt for stash to drop. gashl = Git Stash List - List stashes. gashp = Git Stash Pop - Pop stash or prompt for stash to pop. gashs = Git Stash Show - Show stash or prompt for stash to show. gasht = Git Stash (stage) - Creates stash of staged work. gbc = Git Branch Create - Create and switch to branch. gbca = Git Branch Create (all) - Create and switch to branch for projects in current directory. gbd = Git Branch Delete - Interactively delete local and/or remote branch. gbdl = Git Branch Delete (local) - Delete local branch. gbdm = Git Branch Delete (merged) - Delete remote and local merged branches. gbdr = Git Branch Delete (remote) - Delete remote branch. gbf = Git Branch Facsimile - Duplicate current branch with new name and switch to it. gbl = Git Branch List - List local and remote branch details. gbla = Git Branch List (all) - List current branch for projects in current directory. gblo = Git Branch List (owner) - List branches owned by current author or supplied author. gbna = Git Branch Number (all) - Answer number of branches for projects in current directory. gbr = Git Branch Rename - Rename current branch. gbs = Git Branch Switch - Switch between branches. gbsa = Git Branch Switch (all) - Switch to given branch for projects in current directory. gcaa = Git Commit (all) - Commit changes (unstaged and staged) for projects in current directory. gcap = Git Commit and Push (all) - Commit and push changes for projects in current directory. gcb = Git Commit Breakpoint - Create a breakpoint (empty) commit to denote related commits in a feature branch. gcf = Git Commit Fixup - Create fixup commit with optional amend or reword support. gcff = Git Commit Fix (file) - Create commit fix for file (ignores previous fixups). gcfi = Git Commit Fix (interactive) - Select which commit to fix within current feature branch. gdf = Git Diff Files - List all added/changed files on current branch. gday = Git Day - Answer summarized list of current day activity for projects in current directory. gesh = Git Reset Hard - Reset to HEAD, destroying all untracked, staged, and unstaged changes. UNRECOVERABLE! gesha = Git Reset Hard (all) - Destroy all untracked, staged, and unstaged changes for all projects in current directory. UNRECOVERABLE! gess = Git Reset Soft - Resets previous commit (default), resets back to number of commits, or resets to specific commit. ggeta = Git Get Config Value (all) - Answer key value for projects in current directory. ghow = Git Show - Show commit details with optional diff support. ghurn = Git Churn - Answer commit churn for project files (sorted highest to lowest). gia = Git Init (all) - Initialize/re-initialize repositories in current directory. gile = Git File - Show file details for a specific commit (with optional diff support). gince = Git Since - Answer summarized list of activity since date/time for projects in current directory. ginfo = Git Info - Print repository overview information. gistory = Git File History - View file commit history (with optional diff support). glameh = Git Blame History - View file commit history for a specific file and/or lines (with optional diff support). gld = Git Log Details - List default or feature branch commit details. gleana = Git Clean (all) - Clean uncommitted files from all projects in current directory. glear = Git Clear - Clear repository for packaging/shipping purposes. gli = Git Log (interactive) - List default or feature branch commits with commit show and/or diff support. gma = Git Merge (all) - Merges, deletes, and pushes feature branch. gmonth = Git Month - Answer summarized list of current month activity for projects in current directory. gmpa = Git Amend Push (all) - Amend all changes and force push with lease for projects in current directory. gount = Git Commit Count - Answer total number of commits for current project. gp = Git Push - Pushes changes to remote repository with dynamic branch creation if non-existent. gpa = Git Push (all) - Push changes for projects in current directory. gpua = Git Pull (all) - Pull new changes from remote branch for projects in current directory. gra = Git Remote Add - Add and track a remote repository. grbi = Git Rebase (interactive) - Rebase commits, interactively. grbq = Git Rebase (quick) - Rebase commits, quickly. Identical to `grbi` function but skips editor. groot = Git Root - Change to repository root directory regardless of current depth. gseta = Git Set Config Value (all) - Set key value for projects in current directory. gsta = Git Status (all) - Answer status of projects with uncommited/unpushed changes. gstats = Git Statistics - Answer statistics for current project. gstatsa = Git Statistics (all) - Answer statistics for all projects in current directory. gsup = Git Standup - Answer summarized list of activity since yesterday for projects in current directory. gtagd = Git Tag Delete - Delete local and remote tag (if found). gtagr = Git Tag Rebuild - Rebuild a previous tag. WARNING: Use with caution, especially if previously published. gtail = Git Tail - Answer commit history since last tag for current project (copies results to clipboard). gtaila = Git Tail (all) - Answer commit history count since last tag for projects in current directory. gucca = Git Upstream Commit Count (all) - Answer upstream commit count since last pull for projects in current directory. guke = Git Nuke - Permanently destroy and erase a file from history. UNRECOVERABLE! gunseta = Git Unset (all) - Unset key value for projects in current directory. gup = Git Update - Fetch commits, prune untracked references, review each commit (optional, with diff), and pull (optional). guthorc = Git Author Contributions - Answers total lines added/removed by author for repo (with emphasis on deletion). guthorsa = Git Authors (all) - Answer author commit activity per project (ranked highest to lowest). gvac = Git Verify and Clean - Verify and clean objects for current project. gvaca = Git Verify and Clean (all) - Verify and clean objects for projects in current directory. gwa = Git Worktree Add - Add and switch to new worktree. gwd = Git Worktree Delete - Deletes current Git worktree. gweek = Git Week - Answer summarized list of current week activity for projects in current directory. gync = Git Sync - Syncs up remote changes and deletes pruned/merged branches. .... ==== https://github.com:[GitHub] .... gh = GitHub - View GitHub details for current project. ghpra = GitHub Pull Request (all) - Open pull requests for all projects in current directory (non-default branches only). .... ==== https://en.wikipedia.org/wiki/Less_(Unix):[less] .... lessi = Less Interactive - Inspect file, interactively. .... ==== https://github.com/pivotal/LicenseFinder:[License Finder] .... licensea = License Finder (add) - Adds library to global list. licensei = License Finder (include) - Include license in global list. .... ==== https://people.freebsd.org/~abe:[lsof] .... port = Port - List file activity on given port. .... ==== https://jedisct1.github.io/minisign:[Minisign] .... sigf = Minisign Sign File - Sign a file. sigg = Minisign Generate - Generate private and public key pair. sigv = Minisign Verify File - Verify signed file. .... ==== https://openssl.org:[OpenSSL] .... sslc = SSL Certificate Creation - Create SSL certificate. .... ==== https://github.com/DarthSim/overmind:[Overmind] .... omc = Overmind Connect - Connect to running process. omr = Overmind Restart - Restart running process. oms = Overmind Start - Start processes. .... ==== https://www.postgresql.org:[PostgreSQL] .... pgt = PostgreSQL Template - Edit PostgreSQL template. pguc = PostgreSQL User Create - Create PostgreSQL user. pgud = PostgreSQL User Drop - Drop PostgreSQL user. .... ==== https://github.com/ruby/rake:[Rake] .... rakea = Rake (all) - Run default Rake tasks for projects in current directory. .... ==== https://rspec.info:[RSpec] .... rsall = RSpec (all) - Run RSpec for projects in current directory. rsb = RSpec Bisect - Debug RSpec failure using bisect to automatically determine where failure is occuring. rsd = RSpec Debug - Debug intermittent RSpec failure(s) by running spec(s) until failure is detected. rsp = RSpec Profile - Runs RSpec specs with profiling enabled. .... ==== https://docs.rubocop.org:[Rubocop] .... copa = Rubocop (all) - Run Rubocop for all projects in current directory. .... ==== https://www.ruby-lang.org:[Ruby] .... rbs = Ruby Server - Serve web content from current directory via WEBrick. rbw = Ruby Which - Locate path to current Ruby program. rbua = Ruby Upgrade (all) - Upgrade Ruby projects in current directory with new Ruby version. rbva = Ruby Version (all) - Show current Ruby version for all projects in current directory. .... ==== https://rubygems.org:[Ruby Gems] .... gemdep = Gem Dependency Search - Finds a gem defined within a Gemfile or a gemspec. .... ==== https://rubyonrails.org:[Ruby on Rails] .... railsn = Ruby on Rails New - Create new Rails application from selected option. .... ==== https://github.com/Aloxaf/silicon:[Silicon] .... scc = Silicon Copy - Generates and copies code snippet image to clipboard. .... === Git Hooks .... brakeman_check = Brakeman Check - Scan Rails project for security vulnerabilities. bundler_gemfile_path = Bundler Gemfile Path - Detect gem path statements. bundler_audit_check = Bundler Audit Check - Scans gem dependencies for security vulnerabilities. capybara_save_and_open_page = Capybara Save And Open Page - Detect save_and_open_page statements. comment_totals = Comment Totals - Print project comment totals. ctags_rebuild = CTags Rebuild - Rebuild project .tags file. ruby_dead_end = Ruby DeadEnd - Detect Ruby missing `end` statements. elm_debug = Elm Debug - Detect debug statements. git_lint_check = Git Lint Check - Enforce consistent Git commits. git_trailer_cleaner = Git Trailer Cleaner - Remove unused/empty Git commit body trailers. java_script_debugger = JavaScript Debugger - Detect JavaScript debug statements. java_script_console = JavaScript Console - Detect JavaScript console statements. java_script_alert = JavaScript Alert - Detect JavaScript alert statements. license_finder_check = License Finder Check - Scan project for valid licenses. reek_check = Reek Check - Scan Ruby code for poor style choices. rspec_dotfile = RSpec Dotfile - Detect RSpec dotfile. rspec_focus = RSpec Focus - Detect RSpec focus. rspec_order = RSpec Order - Detect RSpec ordered specs. rubocop_check = Rubocop Check - Scan Ruby code for poor style choices. ruby_debug = Ruby Debug - Detect Ruby debug statements. .... === IRB [source,ruby] ---- CK.copy # Copies data to OS X clipboard. CK.locate # Locates source code for given object and method. CK.paste # Pastes data from OS X clipboard. CK.search # Searches for object method for given pattern. ---- == Development To contribute, run: [source,bash] ---- git clone https://github.com/bkuhlmann/dotfiles.git cd dotfiles ---- == link:https://www.alchemists.io/policies/license[License] == link:https://www.alchemists.io/policies/security[Security] == link:https://www.alchemists.io/policies/code_of_conduct[Code of Conduct] == link:https://www.alchemists.io/policies/contributions[Contributions] == link:https://www.alchemists.io/projects/dotfiles/versions[Versions] == link:https://www.alchemists.io/community[Community] == Credits Engineered by link:https://www.alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。