-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bashrc
34 lines (26 loc) · 683 Bytes
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User settings
export LANG=en_GB.UTF-8
# User created aliases and functions
alias sl="ln -s"
alias cd~="cd ~"
alias cd..="cd .."
alias ..="cd .."
alias ~="cd ~"
alias cls="clear"
alias :q=exit
function searchfile() {
grep -R "$1" .
}
# Git specific user-created aliases and functions.
alias gitlog="git log --author=$1 --format=\"%ai %h %s\"" #This shows all commits in the format of "date hash commitmessage"
function gitpush() {
git add .; git commit -m "$1"; git pull --rebase; git push --recurse-submodules=on-demand
}
function gitchmod() {
git update-index --chmod=+x $1
}