-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_aliases.symlink
executable file
·50 lines (40 loc) · 1.79 KB
/
bash_aliases.symlink
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
alias less='less -FRX -j.5'
alias x='exit'
alias t='gnome-terminal --hide-menubar'
alias v='vim'
alias gd='git diff'
alias gdc='git diff --cached'
alias gc='git commit'
alias gstat='git status'
alias bp='bpython'
alias l='ls -laF'
alias grep='grep --color'
alias ..='cd ..'
alias ...='cd ../..'
# 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
alias pbcopy="xclip -selection c"
alias pbpaste="xclip -selection clipboard -o"
# https://github.com/mikefarah/yq?tab=readme-ov-file#oneshot-use
alias yq='docker run --rm -v ${PWD}:/workdir -w /workdir mikefarah/yq'
alias teams="gtk-launch teams"
alias outlook="gtk-launch outlook"
alias screen-mutt='screen -c ~/.mutt/screenrc -S mutt -R'
alias goenv='docker run --rm -ti --name build --hostname build -v $PWD:/code -v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK -e SSH_AUTH_SOCK -e GOWORK=off -v /var/run/docker.sock:/var/run/docker.sock -w /code golang:1.20 /bin/bash'
alias kubectl-get-images='kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.containers[*].image} {.items[*].spec.initContainers[*].image}" | xargs -n1 | sort -u'
alias xrandr-home='xrandr --output eDP-1 --auto --primary --output DP-1-2 --auto --right-of eDP-1'
alias docker-run='docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/workdir \
-w /workdir \
-u $(id -u):$(id -g) \
--group-add $(getent group docker | cut -d: -f3)'
alias kill-socks='find /tmp/socks* -type s -name ssh-control-socket -exec ssh -S {} -O exit blah \;'