Skip to content

Commit d37dfed

Browse files
committed
adding bash config files and updating readme.md
1 parent f9e48b7 commit d37dfed

3 files changed

Lines changed: 87 additions & 2 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
# bash
2-
bash
1+
# BASH and .bashrc
2+
3+
My .bashrc config file with some custom aliases and [bash-git-prompt](https://github.com/magicmonty/bash-git-prompt)
4+
5+
- **Ubuntu/Debian version:** [https://github.com/eddinn/bash/blob/master/bashrc-ubuntu](https://github.com/eddinn/bash/blob/master/bashrc-ubuntu)
6+
7+
- **Fedora/RHEL/CentOS version:** [https://github.com/eddinn/bash/blob/master/bashrc-fedora](https://github.com/eddinn/bash/blob/master/bashrc-fedora)

bashrc-fedora

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# .bashrc
2+
3+
# Source global definitions
4+
if [ -f /etc/bashrc ]; then
5+
. /etc/bashrc
6+
fi
7+
8+
# User specific environment
9+
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
10+
export PATH
11+
12+
# Uncomment the following line if you don't like systemctl's auto-paging feature:
13+
# export SYSTEMD_PAGER=
14+
15+
# User specific aliases and functions
16+
17+
ELECTRON_TRASH=gio
18+
19+
# system aliases
20+
alias pef="ps -ef"
21+
alias paux="ps aux"
22+
alias free="free -m"
23+
alias cls="clear"
24+
25+
# Shell History
26+
alias h='history | less'
27+
28+
# ls aliases
29+
alias la="ls -lAtr --color=auto"
30+
31+
# prog
32+
alias cdp="cd ~/Prog/puppet && ls -lAtr"
33+
34+
# dir specific aliases
35+
alias cd..="cd .."
36+
alias ..="cd .."
37+
alias ...="cd ../.."
38+
alias ....="cd ../../.."
39+
alias .....="cd ../../../.."
40+
41+
alias md="mkdir -p"
42+
alias rd="rmdir"
43+
44+
# dnf aliases
45+
alias dnfd="sudo dnf distrosync"
46+
47+
alias gitp="git pull"
48+
alias gits="git status"
49+
alias gitd="git diff"
50+
alias gitcb="git checkout -b $1"
51+
alias gitc="git checkout $1"
52+
53+
# Git finish
54+
# Eg. gf "commit message" branch-name
55+
gitf() {
56+
git add . && git commit -am "$1" && git push origin "$2"
57+
}
58+
59+
# Set config variables first
60+
GIT_PROMPT_ONLY_IN_REPO=1
61+
62+
# GIT_PROMPT_FETCH_REMOTE_STATUS=0 # uncomment to avoid fetching remote status
63+
# GIT_PROMPT_IGNORE_SUBMODULES=1 # uncomment to avoid searching for changed files in submodules
64+
# GIT_PROMPT_WITH_VIRTUAL_ENV=0 # uncomment to avoid setting virtual environment infos for node/python/conda environments
65+
66+
# GIT_PROMPT_SHOW_UPSTREAM=1 # uncomment to show upstream tracking branch
67+
# GIT_PROMPT_SHOW_UNTRACKED_FILES=normal # can be no, normal or all; determines counting of untracked files
68+
69+
# GIT_PROMPT_SHOW_CHANGED_FILES_COUNT=0 # uncomment to avoid printing the number of changed files
70+
71+
# GIT_PROMPT_STATUS_COMMAND=gitstatus_pre-1.7.10.sh # uncomment to support Git older than 1.7.10
72+
73+
# GIT_PROMPT_START=... # uncomment for custom prompt start sequence
74+
# GIT_PROMPT_END=... # uncomment for custom prompt end sequence
75+
76+
# as last entry source the gitprompt script
77+
# GIT_PROMPT_THEME=Custom # use custom theme specified in file GIT_PROMPT_THEME_FILE (default ~/.git-prompt-colors.sh)
78+
# GIT_PROMPT_THEME_FILE=~/.git-prompt-colors.sh
79+
GIT_PROMPT_THEME=Solarized # use theme optimized for solarized color scheme
80+
source ~/.bash-git-prompt/gitprompt.sh
File renamed without changes.

0 commit comments

Comments
 (0)