{"id":22425261,"url":"https://github.com/aamnah/dotfiles","last_synced_at":"2026-03-16T03:33:42.171Z","repository":{"id":18011397,"uuid":"21033705","full_name":"aamnah/dotfiles","owner":"aamnah","description":".files and *nix defaults","archived":false,"fork":false,"pushed_at":"2023-02-05T10:31:53.000Z","size":136,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T06:53:12.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://aamnah.github.io/dotfiles","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aamnah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-20T10:09:34.000Z","updated_at":"2024-03-15T06:53:12.925Z","dependencies_parsed_at":"2023-02-18T23:01:46.564Z","dependency_job_id":null,"html_url":"https://github.com/aamnah/dotfiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamnah%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamnah%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamnah%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aamnah%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aamnah","download_url":"https://codeload.github.com/aamnah/dotfiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228356402,"owners_count":17907191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T19:13:40.052Z","updated_at":"2026-03-16T03:33:42.135Z","avatar_url":"https://github.com/aamnah.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":".Files\n========\n\nThese files are an accumulation of bash aliases, shortcuts and functions that i have collected over the years.\n\nWhile these are Mac specific (for example, the LSCOLORS is different as compared to the GNU LS_COLORS), they can easily be ported for use on Linux.\n\n\n.bash_aliases\n---\nShortcuts for directories, programs, system processes and commands.\n\n#### Directories\n- `desk` go to Desktop\n- `dl` go to Downloads\n- `proj` go to the folder where all projects are (variable)\n- `sites` go to the folder where all sites are (variable)\n\n#### Commands and tools\n- `ydl` shortcut for `youtube-dl`\n- `gath` starts ssh-agent and loads SSH key (variable). used for Git purposes\n\n#### Misc.\n- `emptytrash` Empty the Trash on all mounted volumes and the main HDD\n- `cleanup` Recursively delete _.DS_Store_ files\n- `chromekill` Kill all the tabs in Chrome to free up memory\n- `afk` Lock the screen (when going AFK)\n- `reload` Reload the shell (i.e. invoke as a login shell)\n- `tree` Always list the tree command in color coding\n\n#### Smart Listings\n- `ll` List all (-a) files and directories in a detailed (-l), human readable (-h), color coded (-G) way with a trailing slash (-F).\n- `lsd` Only list directories, including hidden ones\n\n#### Sudo\n- `dang` repeat the last command with sudo, basically `sudo !!` equivalent\n\n#### Disk Usage\n- `ducks` List top ten largest files/directories in current directory\n- `ds` Find the biggest in a folder\n\n#### Memory\n- `wotgobblemem` What's gobbling the memory?\n\n#### DNS\n- `flush`, `flushdns` Flush DNS cache\n- `dig` Better and more to-the-point dig results\n\n#### IPs\n- `ip`, `myip` Show Public IP address\n- `localip` Show local IP\n\n#### Security\n- `netlisteners` Show active network listeners\n\n.bash_colors\n---\nThis file has ANSI color codes saved into human readable variables. The\nvariable names and codes have been taken from\n[here](https://misc.flogisoft.com/bash/tip_colors_and_formatting)\nand have been kept the same for universal recognition.\n\n`.bash_colors` has variables with eight colors and their bold, underlined,\nand background versions.\n\n#### Usage:\nSix basic colors (blue, cyan, green, magenta, red, yellow) have been set in `.bash_colors` for easy use. \nYou can use these anywhere in the terminal once the `~/.bash_colors` file has been sourced inside `~/.bash_profile`\n\nWrap the code you want to color in the appropriate tags. There is an\nopening tag in the format of `$NAME` and a closing tag `$COLORRESET` at\nthe end.  For example\n\n`echo -e \"\\n${YELLOW}Current date :${COLORRESET} \" ; date`\n\nwill echo `Current date :` in yellow color and then output `date` in\ndefault color on the next line.\n\nThere are four available types of colors: Regular, Bold, Underline, and Background.\n\n    BLACK='\\033[0;30m'        # Regular Black\n    BBLACK='\\033[1;30m'       # Bold Black\n    UBLACK='\\033[4;30m'       # Underline Black \n    ONBLACK='\\033[40m'       # Background Black \n\nYou can also use multiple color tags in one statement like so:\n\n    ${GREEN} WordPress was sucessfully copied! Don't forget to edit ${BGREEN}wp-config.php ${GREEN}to add Database details ${COLORRESET}\n    \n![Colors screenshot](https://raw.githubusercontent.com/aamnah/dotfiles/master/screenshots/cli_colors.png)\n\n\n.bash_profile\n---\n\n- `PS1` - Prompt shows only current working directory `\\w` and `\\$`. Newline at both beginning and end makes differentiating command output easier\n\n.functions\n---\n- `take()` create a dir and cd to it by taking a name\n- `fopen()` create a file and open it in Sublime Text\n- `extract()` Extract most know archives with one command\n- `ii()` display useful host related informaton\n- `getwebsite()` wget a whole website\n- `spy()` identify and search for active network connections\n- `sniff()` sniff GET and POST traffic over http v2\n- `bell()` Ring the system bell after finishing a script/compile\n- `jpost` Create new Jekyll posts\n\n.dev\n---\n- `gplv3` Add a GPL license file to your project\n- `gruntfile` Add gruntfile.js template file to the project\n- `ocmod()` Create an OCMOD script with template code. Provide a name for script as argument.\n- `vqmod()` Create a vQmod script with template code. Provide a name for script as argument.\n- `install()` Install popular software/frameworks with one command. Supports WordPress, Opencart and Bootstrap at the moment.\n- `jekylldo` build jekyll, run some grunts and deploy on Amazon S3\n- `jpost()` create a new Jekyll post in the pre-defined directory with YAML template. Takes `-o` flag for opening files in Sublime Text after they are created.\n- `ocext()` create opencart module/extension skeleton\n- `dash()` Initiate a Dash search from within Terminal\n- `bbkey()` Lets you `add`, `load`, `list`, `try` and `check` Bitbucket Key\n\nResources\n---\n- Take a look at [Command Line Fu](http://www.commandlinefu.com/commands/browse/sort-by-votes) for some really cool commands\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faamnah%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faamnah%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faamnah%2Fdotfiles/lists"}