-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
63 lines (48 loc) · 1.8 KB
/
.bash_aliases
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/env bash
alias show-keyboard='gkbd-keyboard-display -g 1'
alias ipconfig='ifconfig'
alias python-webserver='python3 -m http.server'
alias copy-to-clip='xclip -sel clip'
alias top-ten="history | sed 's/^ \+//;s/ / /' | cut -d' ' -f2- | awk '{ count[\$0]++ } END { for (i in count) print count[i], i }' | sort -rn |head -10"
alias now='date "+%H:%M:%S %d/%m/%y"'
alias nano-crypto=crypto-file
alias rm-secure='shred -u -z'
# start git commands
alias g='git'
alias g-add='git add'
alias g-fetch='git fetch'
alias g-clean-dfx='git-clean-dfx'
alias g-commit-sha='git-commit-sha'
alias g-fix-whitespace='git-fix-whitespace'
alias g-log-styled='git-log-styled'
alias g-merge-log='git-merge-log'
alias g-show-files='git-show-files'
alias g-commit='git commit'
alias g-cm='git commit'
alias g-status='git status'
alias g-st='git status'
alias g-push-f-marcel='git-push-f-marcel'
alias g-push-marcel='git-push-marcel'
alias git-amend='git commit --amend'
alias g-amend='git-amend'
alias git-amend-no-edit='git commit --amend --no-edit'
alias g-amend-no-edit='git-amend-no-edit'
alias git-diff-staged='git diff --staged'
alias g-diff-staged='git-diff-staged'
alias g-log='git log'
alias git-log-one-author='git log --pretty=format:"%h %an %ad %s" --date=short'
alias g-log-one-author='git-log-one-author'
alias git-status-uno='git status -uno'
alias g-status-uno='git-status-uno'
alias git-unstage='git reset HEAD'
alias g-unstage='git-unstage'
alias git-current-branch='git rev-parse --abbrev-ref HEAD'
alias g-current-branch='git-current-branch'
alias git-pull-rebase='git pull --rebase'
alias g-pull-rebase='git-pull-rebase'
# aliases to things not created by me
alias g-shell='git-shell'
alias g-upload-archive='git-upload-archive'
alias g-receive-pack='git-receive-pack'
alias g-upload-pack='git-load-pack'
# end git commands