|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
|
2
|
+alias brc='source ~/.bashrc'
|
|
|
3
|
+
|
|
|
4
|
+# LISTING
|
|
|
5
|
+alias ll='ls -la --color=auto'
|
|
|
6
|
+alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'''
|
|
|
7
|
+
|
|
|
8
|
+# CHANGE DIR
|
|
|
9
|
+alias ..='cd ..'
|
|
|
10
|
+alias ...='cd ../../'
|
|
|
11
|
+alias ....='cd ../../../'
|
|
|
12
|
+alias .....='cd ../../../../'
|
|
|
13
|
+function mcd() {
|
|
|
14
|
+ mkdir -p "$1" && cd "$1";
|
|
|
15
|
+}
|
|
|
16
|
+
|
|
|
17
|
+# GREP
|
|
|
18
|
+alias tm='ps -ef | grep'
|
|
|
19
|
+
|
|
|
20
|
+# GIT
|
|
|
21
|
+alias gl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
|
|
|
22
|
+alias gs="git status"
|
|
|
23
|
+gwd(){
|
|
|
24
|
+ default="1 day ago"
|
|
|
25
|
+ git log --committer=me@prellele.de --pretty=format:"%Cgreen%ar (%h)%n%Creset> %s %b%n" --since="${1:-$default}" --no-merges
|
|
|
26
|
+}
|
|
|
27
|
+
|
|
|
28
|
+
|