Some new aliases
This commit is contained in:
parent
ac34523609
commit
71b2f0b144
2 changed files with 48 additions and 12 deletions
45
build/bashrc
45
build/bashrc
|
@ -1,12 +1,47 @@
|
||||||
alias gst='git status'
|
# Some Alias
|
||||||
alias gcm='git commit -m'
|
alias h=history
|
||||||
alias gmh='git log --follow -p --'
|
alias s=sudo
|
||||||
alias ll='ls -ls'
|
alias rsh='ssh -l root'
|
||||||
alias lh='ls -lsh'
|
alias lh='ls -lsh'
|
||||||
|
alias ll='ls -ls'
|
||||||
alias la='ls -lsa'
|
alias la='ls -lsa'
|
||||||
alias gam='git status | grep "modified" | cut -d: -f2 | xargs -n 1 git add'
|
|
||||||
|
alias gst='git status'
|
||||||
|
alias grm='git rm -f'
|
||||||
|
alias gadd='git add'
|
||||||
|
alias gcm='git commit -m'
|
||||||
|
alias gps='git push'
|
||||||
|
alias gpl='git pull'
|
||||||
|
alias glg='git log'
|
||||||
|
alias gmh='git log --follow -p --'
|
||||||
|
alias gbl='git blame'
|
||||||
|
alias grs='git reset --soft HEAD~1'
|
||||||
|
alias grh='git reset --hard HEAD~1'
|
||||||
alias serve="python -m $(python -c 'import sys; print("http.server" if sys.version_info[:2] > (2,7) else "SimpleHTTPServer")')"
|
alias serve="python -m $(python -c 'import sys; print("http.server" if sys.version_info[:2] > (2,7) else "SimpleHTTPServer")')"
|
||||||
|
|
||||||
|
gunt() {
|
||||||
|
git status | \
|
||||||
|
grep -vE '( to publish your local commits|git add|git restore|On branch|Your branch|Untracked files|nclude in what will b|but untracked files present|no changes added to commit|modified:|deleted:|Changes not staged for commit)' |\
|
||||||
|
sort | uniq | \
|
||||||
|
xargs -n 1 $*
|
||||||
|
}
|
||||||
|
|
||||||
|
gam() {
|
||||||
|
git status | \
|
||||||
|
grep 'modified:' | \
|
||||||
|
cut -d: -f2- | \
|
||||||
|
sort | uniq | \
|
||||||
|
xargs -n 1 git add
|
||||||
|
}
|
||||||
|
|
||||||
|
gad() {
|
||||||
|
git status | \
|
||||||
|
grep 'deleted:' | \
|
||||||
|
cut -d: -f2- | \
|
||||||
|
sort | uniq | \
|
||||||
|
xargs -n 1 git rm -f
|
||||||
|
}
|
||||||
|
|
||||||
dcmd()
|
dcmd()
|
||||||
{
|
{
|
||||||
docker exec -i -t $1 bash
|
docker exec -i -t $1 bash
|
||||||
|
|
|
@ -14,14 +14,15 @@ my $i=1;
|
||||||
while (my $row = <$fh>) {
|
while (my $row = <$fh>) {
|
||||||
chomp $row;
|
chomp $row;
|
||||||
if ($row =~ /^$headerSep/) {
|
if ($row =~ /^$headerSep/) {
|
||||||
print "</pre>\n";
|
print "</pre>\n";
|
||||||
$row =~ s/$headerSep//g;
|
$row =~ s/$headerSep//g;
|
||||||
print "<H3 >$row</H3>\n";
|
print "<H3 >$row</H3>\n";
|
||||||
print "<pre>";
|
print "<pre>";
|
||||||
$i++;
|
$i++;
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
print "$row\n" unless $row =~ /^\s*$/;
|
print "$row\n" unless $row =~ /^\s*$/;
|
||||||
}
|
}
|
||||||
print "</pre>\n";
|
print "</pre>\n";
|
||||||
close $fh;
|
close $fh;
|
||||||
|
|
Loading…
Reference in a new issue