-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases.sh
executable file
·107 lines (88 loc) · 3.4 KB
/
.aliases.sh
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#alias zsh="source $HOME/.zshrc"
alias lsl="ls -lhFA | less"
alias fhere="find . -name "
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
alias myip="curl http://ipecho.net/plain; echo"
alias lip="hostname -I | xargs -n 1 | fzf"
alias sudo="sudo -E " # preserve environment by default
alias htop="TERM=screen htop"
alias random='uuidgen -r | md5sum | sed "s/ .*$//"'
alias uuid="uuidgen -r"
alias uuidc="uuid | pbcopy"
alias pbcopy="xclip -selection clipboard"
alias pbpaste="xclip -selection clipboard -o"
alias ..="cd .."
alias ...="cd ../.."
alias du="du -ach | sort -h"
alias egrep="egrep --color=auto"
alias fgrep="fgrep --color=auto"
alias fhere="find . -name"
#alias fd="fdfind"
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
alias purge-node-modules="find . -name node_modules -type d -prune -exec rm -rf {} +"
alias du="du -ach | sort -h"
alias egrep="egrep --color=auto"
alias fgrep="fgrep --color=auto"
alias fhere="find . -name"
alias tzsh="repeat 10 {time zsh -i -c exit}"
alias c="pbcopy"
alias up="upgrade_oh_my_zsh && npm update && zimfw update && zimfw upgrade && sudo apt-get update && sudo apt-get upgrade -y"
alias lg='lazygit'
alias cache='sudo sync && sudo sysctl -w vm.drop_caches=3'
alias animations="gsettings set org.gnome.desktop.interface enable-animations false"
# PHP
alias pvm="func() { sudo update-alternatives --config php; php --version }; func" # https://gist.github.com/antonio-gg-dev/faf67658001f58eb186b34e1b7c67965
alias pf="./vendor/bin/phpunit --filter"
alias behat="./vendor/bin/behat"
alias bf="./vendor/bin/behat -p"
alias cr="composer require --ignore-platform-reqs"
# Docker
alias dps="docker-compose ps"
alias dstart="docker-compose up -d lb"
alias drmv="docker-compose kill && docker-compose rm -f"
alias dreset="docker-compose kill && docker-compose rm -f && dstart"
# Git
alias git="LANGUAGE=C LC_ALL=es_ES.utf-8 git"
alias got="git "
alias gp="git pull --rebase"
alias gps="git push"
alias gs="git status"
alias gd="git diff"
alias grc="git rebase --continue"
alias grs="git rebase --skip"
alias gra="git rebase --abort"
alias ga="git commit --amend"
alias ghpr="GH_FORCE_TTY=100% gh pr list | fzf --ansi --preview 'GH_FORCE_TTY=100% gh pr view {1}' --preview-window down --header-lines 3 | awk '{print $1}' | xargs gh pr checkout"
alias gcb='git branch --sort=-committerdate | fzf --header "Checkout Recent Branch" --preview "git diff {1} --color=always | delta" --pointer="" | xargs git checkout'
#kubernetes
alias k="kubectl"
alias kns="kubens"
alias kctx="kubectx"
# Dotfiles
alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"
# Node
alias tb="taskbook"
alias tbl="taskbook --timeline"
alias tbt="taskbook --task"
alias tbn="taskbook --note"
alias tbd="taskbook --delete"
# Youtube-dl
alias dyp='yt-dlp -ci -o "%(playlist_index)s-%(title)s.%(ext)s"'
alias dy="yt-dlp -x "
alias dt='yt-dlp --external-downloader aria2c --external-downloader-args "-x 16"'
# Systems
alias getip='dig @resolver4.opendns.com myip.opendns.com +short -4'
#alias python=python3
# Codely
alias gcl="clone_git_repo"
# VPN Wiregard
alias vpn_up="sudo wg-quick up wg0"
alias vpn_down="sudo wg-quick down wg0"
# New commands
alias ls="exa"
alias bat="batcat"
#alias cat="bat --paging=never"
alias wo="pomodoro 'work' &"
alias br="pomodoro 'break' &"
alias tldrs='tldr --list | xargs -d ',' -n1 echo | fzf --preview "tldr {1}" --preview-window=right,80% | xargs tldr'
alias free_ram="watch free -g &"