Skip to content
Permalink
Browse files

adding bash config files and updating readme.md

  • Loading branch information...
eddinn committed Jun 4, 2019
1 parent f9e48b7 commit d37dfede3b7160847b40f2915eae9d1d6f5c8268
Showing with 87 additions and 2 deletions.
  1. +7 −2 README.md
  2. +80 −0 bashrc-fedora
  3. 0 bashrc → bashrc-ubuntu
@@ -1,2 +1,7 @@
# bash
bash
# BASH and .bashrc

My .bashrc config file with some custom aliases and [bash-git-prompt](https://github.com/magicmonty/bash-git-prompt)

- **Ubuntu/Debian version:** [https://github.com/eddinn/bash/blob/master/bashrc-ubuntu](https://github.com/eddinn/bash/blob/master/bashrc-ubuntu)

- **Fedora/RHEL/CentOS version:** [https://github.com/eddinn/bash/blob/master/bashrc-fedora](https://github.com/eddinn/bash/blob/master/bashrc-fedora)
@@ -0,0 +1,80 @@
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific environment
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
export PATH

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions

ELECTRON_TRASH=gio

# system aliases
alias pef="ps -ef"
alias paux="ps aux"
alias free="free -m"
alias cls="clear"

# Shell History
alias h='history | less'

# ls aliases
alias la="ls -lAtr --color=auto"

# prog
alias cdp="cd ~/Prog/puppet && ls -lAtr"

# dir specific aliases
alias cd..="cd .."
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."

alias md="mkdir -p"
alias rd="rmdir"

# dnf aliases
alias dnfd="sudo dnf distrosync"

alias gitp="git pull"
alias gits="git status"
alias gitd="git diff"
alias gitcb="git checkout -b $1"
alias gitc="git checkout $1"

# Git finish
# Eg. gf "commit message" branch-name
gitf() {
git add . && git commit -am "$1" && git push origin "$2"
}

# Set config variables first
GIT_PROMPT_ONLY_IN_REPO=1

# GIT_PROMPT_FETCH_REMOTE_STATUS=0 # uncomment to avoid fetching remote status
# GIT_PROMPT_IGNORE_SUBMODULES=1 # uncomment to avoid searching for changed files in submodules
# GIT_PROMPT_WITH_VIRTUAL_ENV=0 # uncomment to avoid setting virtual environment infos for node/python/conda environments

# GIT_PROMPT_SHOW_UPSTREAM=1 # uncomment to show upstream tracking branch
# GIT_PROMPT_SHOW_UNTRACKED_FILES=normal # can be no, normal or all; determines counting of untracked files

# GIT_PROMPT_SHOW_CHANGED_FILES_COUNT=0 # uncomment to avoid printing the number of changed files

# GIT_PROMPT_STATUS_COMMAND=gitstatus_pre-1.7.10.sh # uncomment to support Git older than 1.7.10

# GIT_PROMPT_START=... # uncomment for custom prompt start sequence
# GIT_PROMPT_END=... # uncomment for custom prompt end sequence

# as last entry source the gitprompt script
# GIT_PROMPT_THEME=Custom # use custom theme specified in file GIT_PROMPT_THEME_FILE (default ~/.git-prompt-colors.sh)
# GIT_PROMPT_THEME_FILE=~/.git-prompt-colors.sh
GIT_PROMPT_THEME=Solarized # use theme optimized for solarized color scheme
source ~/.bash-git-prompt/gitprompt.sh
File renamed without changes.

0 comments on commit d37dfed

Please sign in to comment.
You can’t perform that action at this time.