https://github.com/hernanmd/mydot
My dotted files for bash
https://github.com/hernanmd/mydot
aliases bash dotfiles shell
Last synced: 2 months ago
JSON representation
My dotted files for bash
- Host: GitHub
- URL: https://github.com/hernanmd/mydot
- Owner: hernanmd
- License: mit
- Created: 2019-02-07T21:34:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T14:05:00.000Z (almost 6 years ago)
- Last Synced: 2025-07-04T22:42:24.778Z (12 months ago)
- Topics: aliases, bash, dotfiles, shell
- Language: Shell
- Size: 48.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Description
Adds a lot of useful command-line shortcuts to Bash shells using aliases and functions. Many of them are already disseminated through the whole Internet, so you may recognize them. This documentation assumes you're using bash as your login shell.
_Work in Progress_
# Installation
```bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/hernanmd/mydot/master/install.sh)"
source ~/.bashrc
source ~/.bash_functions
```
## Using a login shell?
Depending on your environment, you can run a "login shell" (.bash_profile "friendly", getty+/usr/bin/login, bash --login, iTerm OSX Terminal) or a "regular (non-login, normal interactive) shell" (.bashrc "friendly", xterm, tmux). To check your shell is a “login shell” type:
```bash
shopt login_shell
```
If the reply is off you are not running a login shell. Otherwise if you are using a login shell you need to source the .bashrc (as all aliases and functions are sourced in .bashrc) from .bash_profile as follows:
```bash
echo "source ~/.bashrc
source ~/.bash_functions" >> ~/.bash_profile
```
# Usage
## Meta-information about these aliases
```bash
# How many aliases do we have?
calias
# Listing all aliases
alias
# List Git aliases
gitalias
# List defined function names
listfunctions
# To view all the defined functions
viewfunctions
```
# Troubleshooting
WiP