forked from oshevtsov/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_aliases
More file actions
69 lines (56 loc) · 2.38 KB
/
Copy pathbash_aliases
File metadata and controls
69 lines (56 loc) · 2.38 KB
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
64
65
66
67
68
69
#!/bin/bash
# Sonic remote command alias
alias scargo='/home/jonas/.dotfiles/scripts/sonic-cargo'
# Custom dotfile aliases
alias ferroamp='/home/jonas/.dotfiles/tmux_ferroamp.sh'
alias sonic='/home/jonas/.dotfiles/tmux_sonic.sh'
alias certainli='/home/jonas/.dotfiles/tmux_certainli.sh'
alias misc='/home/jonas/.dotfiles/tmux_misc.sh'
alias ferrossh='/home/jonas/.dotfiles/tmux_ferrossh.sh'
alias kanatastart='sudo /home/jonas/.cargo/bin/kanata --cfg /home/jonas/.dotfiles/kanata/engswe_capslock_ctrlescape_vimkeys.kbd'
# Jira aliases
alias mywork='jira issue ls -s~Cancelled -s~Done -s~Backlog -a$(jira me) --order-by updated'
alias mytodo='jira issue ls -s"To Do" -a$(jira me) --order-by priority'
alias mybacklog='jira issue ls -sBacklog -a$(jira me) --order-by priority'
alias epics='jira epic ls --order-by priority -s~Cancelled -s~Done'
# Git aliases
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gd='git diff | mate'
alias gau='git add --update'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcot='git checkout -t'
alias gcotb='git checkout --track -b'
alias glog='git log'
alias glogp='git log --pretty=format:"%h %s" --graph'
alias grbc='git rebase --continue'
# hgrep https://askubuntu.com/questions/74631/how-do-i-search-my-command-line-history-for-commands-i-used-before
# hgrep () {
# history | egrep --color=auto --recursive "$@" | egrep --color=auto --recursive -v "hgrep $@"
# }
alias hgrep='history | grep --color=auto '
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'