dotfiles/bash/.bash/01-aliases.bash

74 lines
1.7 KiB
Bash
Raw Normal View History

2022-03-22 00:04:49 -06:00
#!/bin/sh
#
# 01-aliases.bash
# bryson's bash aliases
#
shopt -s expand_aliases
2022-10-26 12:05:56 -06:00
alias sudo="doas"
# typos
alias l='ls'
alias sl='ls'
2022-03-22 00:04:49 -06:00
# grep colors
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# ls color and shortcuts
alias ls='ls --color=auto'
alias la='ls -a'
alias lsd='ls -lh'
# copy an entire file
alias copy='xclip -sel c <'
# cd shortcuts
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias back='cd -'
2022-03-22 00:04:49 -06:00
# binary renames
2022-10-26 12:05:56 -06:00
alias java='/usr/local/java/jdk-18.0.1.1/bin/java'
alias java11='/usr/bin/java'
2022-03-22 00:04:49 -06:00
alias python='python3'
2022-10-26 12:05:56 -06:00
alias g++='g++ --std=c++20'
alias j='autojump'
alias vim='vim -p'
2022-03-22 00:04:49 -06:00
# quick important file edits
2022-10-26 12:05:56 -06:00
alias todo='vim ~/.todo/TODO.org'
2022-03-22 00:04:49 -06:00
# go to directory with files from iPhone
alias iPhone='cd /home/bryson/Downloads/from-iPhone'
2022-05-04 19:11:10 -06:00
# common combinations
2022-03-22 00:04:49 -06:00
alias gs='gs -dNOSAFER'
alias django='python manage.py'
2022-10-26 12:05:56 -06:00
alias smci='doas make clean install'
alias smi='doas make install'
#alias mount='sudo mount'
#alias umount='sudo umount'
# bash navigation
alias add-alias='vim ~/.bash/01-aliases.bash; . ~/.bash_profile'
2022-10-26 12:05:56 -06:00
# common portage files
alias package.use='doas vim /etc/portage/package.use'
alias make.conf='doas vim /etc/portage/make.conf'
alias package.license='doas vim /etc/portage/package.license'
# other garbage
2022-10-26 12:05:56 -06:00
alias fixwifi='sudo rc-service wpa_supplicant restart'
#alias spt="spotifyd && spt"
alias macos="cd /home/bryson/git/macOS-Simple-KVM && ./basic.sh"
alias server="python3 /home/bryson/git/webserver/server.py"
alias ssh-pixel="ssh -p 8022 uO_14O@${1}"
alias emerge-update="sudo emerge --ask --verbose --update --deep --changed-use @world"
#alias vim="nvim"
#alias connect='nmcli d wifi connect'
#alias listwifi='nmcli d wifi list'