Skip to content

Commit 29c7ba8

Browse files
committed
update git aliases
1 parent 1c4ad45 commit 29c7ba8

File tree

3 files changed

+32
-21
lines changed

3 files changed

+32
-21
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Sophia Michelle Andren
3+
Copyright (c) 2020 Sophia Michelle Andren
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

aliases.txt

+28-17
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
# A small collection of useful Bash aliases.
33
# https://github.com/sandren/bash
44
#
5-
# To update run: `curl -s https://sandren.com/aliases | bash`
5+
# To update run: `curl -s https://ghcdn.rawgit.org/sandren/bash/master/index.txt | bash`
66

77
# Directory aliases
88
alias ..='cd ..'
99
alias ...='cd ../..'
1010
alias ....='cd ../../..'
11+
alias .....='cd ../../../..'
1112
alias ws='cd /etc/nginx'
1213
alias wsc='cd /etc/nginx/conf.d'
1314
alias wr='cd /var/www'
@@ -17,11 +18,13 @@ alias ls='ls -hF --color=auto --group-directories-first'
1718
alias la='ls -hFA --color=auto --group-directories-first'
1819
alias ll='ls -hFAl --color=auto --group-directories-first'
1920

20-
# Apt aliases
21-
alias update='sudo apt update && sudo apt upgrade -y'
22-
alias autoremove='sudo apt autoremove --purge -y'
21+
# APT aliases
22+
alias apt.update='sudo apt update && sudo apt upgrade -y'
23+
alias apt.clean='sudo apt-get clean && sudo apt update'
24+
alias apt.autoclean='sudo apt-get autoclean && sudo apt update'
25+
alias apt.autoremove='sudo apt autoremove --purge -y'
2326

24-
# Program aliases
27+
# General program aliases
2528
alias n='nano'
2629
alias sn='sudo nano'
2730
alias m='micro'
@@ -34,35 +37,43 @@ alias wget='wget -c'
3437
alias ping='ping -c 5'
3538
alias top='htop'
3639

37-
# Git aliases
38-
alias add='git add .'
39-
alias branch='git branch'
40-
alias checkout='git checkout'
41-
alias clone='git clone'
42-
alias commit='git commit -m'
43-
alias pull='git pull'
44-
alias push='git push'
45-
alias reset='git reset'
46-
alias status='git status'
40+
# Node aliases
41+
alias npm.list='sudo npm list -g --depth 0'
42+
alias npm.outdated='npm outdated -g --depth=0'
43+
alias npm.update='sudo npm update -g'
44+
alias npm.upgrade='sudo npm upgrade -g'
45+
alias npm.clean='sudo rm ./node_modules/.cache -R'
46+
alias npm.fuckit='sudo rm -rf ./node_modules/ && sudo rm package-lock.json && npm install'
47+
48+
# Gatsby aliases
49+
alias build='gatsby build'
50+
alias develop='gatsby develop'
4751

4852
# Tmux aliases
4953
alias tn='tmux new-session -s'
54+
alias stn='sudo tmux new-session -s'
5055
alias ta='tmux attach-session -t'
56+
alias sta='sudo tmux attach-session -t'
5157
alias tr='tmux rename-session -t'
58+
alias str='sudo tmux rename-session -t'
5259
alias tl='tmux list-sessions'
60+
alias stl='sudo tmux list-sessions'
5361
alias tk='tmux kill-session -t'
62+
alias stk='sudo tmux kill-session -t'
5463

5564
# System aliases
56-
alias service='sudo service'
5765
alias start='sudo systemctl start'
5866
alias reload='sudo systemctl reload'
5967
alias restart='sudo systemctl restart'
6068
alias stop='sudo systemctl stop'
69+
alias service='sudo service'
70+
alias myip='curl ipinfo.io/ip'
6171

6272
# Miscellaneous aliases
6373
alias root='sudo -i'
6474
alias fuck='sudo'
6575
alias fucking='sudo'
6676
alias c='clear'
77+
alias bash.edit='sudo nano ~/.bashrc'
6778

68-
# END CUSTOM ALIASES
79+
# END CUSTOM ALIASES

index.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
# This script installs a small collection of useful Bash aliases.
44
#
5-
# Quick install: `curl -s https://sandren.com/aliases | bash`
5+
# Quick install: `curl -s https://ghcdn.rawgit.org/sandren/bash/master/index.txt | bash`
66

77
cd ~
8-
wget -q https://sandren.com/aliases/aliases.txt
8+
wget -q https://ghcdn.rawgit.org/sandren/bash/master/aliases.txt
99
sed -i '/^# START CUSTOM ALIASES/,/^# END CUSTOM ALIASES/d;' ~/.bashrc
1010
cat aliases.txt >> ~/.bashrc
1111
rm aliases.txt
12-
echo " ✅ Bash aliases successfully loaded; type \`exec bash\` to apply changes"
12+
echo " ✅ Bash aliases successfully loaded; type \`exec bash\` to apply changes!"

0 commit comments

Comments
 (0)