All Projects → DannyBen → alf

DannyBen / alf

Licence: MIT license
Bash Alias Generator and Manager

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to alf

pymolshortcuts
The repository pymolschortucts contains the a collection of shortcuts that are loaded on startup of PyMOL. These shortcuts enable websearches from within PyMOL as well as many other convienent functions that make work in PyMOL more productive..
Stars: ✭ 34 (-27.66%)
Mutual labels:  aliases, shortcuts
firefly-ios-shortcuts
iOS Shortcut to create transactions in Firefly III
Stars: ✭ 39 (-17.02%)
Mutual labels:  shortcuts
goto
A fish shell utility to quickly navigate to aliased directories supporting tab-completion
Stars: ✭ 17 (-63.83%)
Mutual labels:  aliases
runn
Make your own terminal aliases easily!
Stars: ✭ 18 (-61.7%)
Mutual labels:  aliases
cheatsheet-generator
Generates cheatsheets for your (favourite) apps
Stars: ✭ 49 (+4.26%)
Mutual labels:  shortcuts
ranger-archives
Ranger Plugin for Creating and Extracting Archives
Stars: ✭ 68 (+44.68%)
Mutual labels:  shortcuts
iphone-shortcut-library
Apple iphone IOS 捷径 app 库(Apple Iphone IOS shortcut Library)
Stars: ✭ 42 (-10.64%)
Mutual labels:  shortcuts
iOS-Shortcuts-Reference
Reference documentation for the iOS Shortcuts app file structure
Stars: ✭ 89 (+89.36%)
Mutual labels:  shortcuts
artisan-aliases
Save keystrokes and run Artisan commands your way
Stars: ✭ 23 (-51.06%)
Mutual labels:  aliases
aly
Command Line Alias Manager and Plugin System - Written in Golang
Stars: ✭ 21 (-55.32%)
Mutual labels:  aliases
shell
Shell functions and aliases
Stars: ✭ 43 (-8.51%)
Mutual labels:  shortcuts
react-shortcut
Convenient React component that detects if the given key combination is pressed, and triggers a callback
Stars: ✭ 16 (-65.96%)
Mutual labels:  shortcuts
hotkey
⌨️ cross-platform hotkey package
Stars: ✭ 82 (+74.47%)
Mutual labels:  shortcuts
quickey
⚡️ Quickey creates keyboard shortcuts for your web apps
Stars: ✭ 37 (-21.28%)
Mutual labels:  shortcuts
siri-shortcuts.el
A set of Emacs commands and functions for interacting with Siri Shortcuts.
Stars: ✭ 28 (-40.43%)
Mutual labels:  shortcuts
DesktopComposer
Manage Start Menu and Desktop Shortcuts for Windows 10/Windows 2019 in Active Directory Environment
Stars: ✭ 41 (-12.77%)
Mutual labels:  shortcuts
mac-terminal-shortcuts
Useful and common terminal shortcuts for macOS
Stars: ✭ 39 (-17.02%)
Mutual labels:  shortcuts
Start-Menu-Manager
App to add websites/software/files/folders/scripts to the Windows 10 Start Menu and Taskbar, and priority shortcuts to Windows 10 Search.
Stars: ✭ 126 (+168.09%)
Mutual labels:  shortcuts
OutputKit
For making nicer looking Shortcuts
Stars: ✭ 27 (-42.55%)
Mutual labels:  shortcuts
anonaddy
Mobile app for AnonAddy.com.
Stars: ✭ 50 (+6.38%)
Mutual labels:  aliases

Alf - Your Little Bash Alias Friend

Version Build Status


Alf enhances your bash alias management. It was developed using the Bashly Command Line Framework.

Features

  • Create aliases by using a config file.
  • Create aliases for sub-commands (for example, g s for git status).
  • Synchronize your aliases across hosts or users by uploading your config file to GitHub.
  • Does not alter anything in your system except for creating the ~/.bash_aliases file, which is normally already sourced by your login process.
  • Works with bash and zsh.

Demo

Demo

Installation

Install the alf executable script:

$ curl -Ls get.dannyb.co/alf/setup | bash

If you prefer to install manually, simply download the alf file, place it somewhere in your path, and make it executable.

Note that alf requires bash 4.0 or higher (brew install bash for mac users).

Using with GitHub-hosted configuration (recommended)

The easiest way to use alf is to create a repository on github, call it alf-conf, and put an alf.conf file in it.

1. Create your own alf-conf repository

2. Connect alf to your repository

$ alf connect <your github user>

3. Save and source your aliases

$ alf save
$ source ~/.bash_aliases  # this normally already exists in your ~/.bashrc

Using without GitHub

If you want to try alf before creating your github repo, use this method to create your bash_aliases file from a local configuration file.

1. Create your alf.conf file

See the sample alf.conf file as a starting point.

2. Save and source your aliases

$ alf save
$ source ~/.bash_aliases

Additional usage patterns

$ alf --help

alf - Your Little Bash Alias Friend

Usage:
  alf [command]
  alf [command] --help | -h
  alf --version | -v

Commands:
  connect    Connect to a remote git repository
  download   Perform git pull on the connected repo
  upload     Perform git commit and push on the connected repo
  generate   Generate aliases to stdout
  save       Generate aliases to ~/.bash_aliases
  edit       Open your alf.conf for editing
  which      Show the alias command
  upgrade    Upgrade alf to the latest version
  info       Show all alf related system facts

Options:
  --help, -h
    Show this help

  --version, -v
    Show version number

Environment Variables:
  ALF_RC_FILE
    Path to alfrc file
    This file holds the path to the alf-conf repository
    Default: ~/.alfrc

Uninstalling

To uninstall alf:

# Remove the shell script
sudo rm /usr/local/bin/alf

# Remove .alfrc (exists only if you have performed `alf connect`)
rm -f ~/.alfrc

# Remove .bash_aliases (exists only if you have performed `alf save`)
rm -f ~/.bash_aliases

Compatibility

Alf was tested on bash and zsh (and might work with other shells).

In all cases, bash version 4.0 or higher must be installed, since alf uses associative arrays which are not available in older versions.

If your shell does not automatically source ~/.bash_aliases on startup, you should add this line to your startup script:

source ~/.bash_aliases

ZSH Users

Oh-My-Zsh users may skip this step.

If you would like to have autocompletion for alf's sub-aliases and you are using zsh, you should enable completion by adding this to your ~/.zshrc (if is it not already there) before sourcing .bash_aliases:

# Load completion functions
autoload -Uz +X compinit && compinit
autoload -Uz +X bashcompinit && bashcompinit

Related Projects

For a similar project, but for command shortcuts on a per-directory basis, see opcode.

Contributing / Support

If you experience any issue, have a question or a suggestion, or if you wish to contribute, feel free to open an issue.


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].