From f7a7898c58fac7f90209d020be4755c8948fa9f7 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 22 Mar 2022 00:04:49 -0600 Subject: reorganized bash configs --- bash/.bash/01-aliases.bash | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 bash/.bash/01-aliases.bash (limited to 'bash/.bash/01-aliases.bash') diff --git a/bash/.bash/01-aliases.bash b/bash/.bash/01-aliases.bash new file mode 100644 index 0000000..767e425 --- /dev/null +++ b/bash/.bash/01-aliases.bash @@ -0,0 +1,42 @@ +#!/bin/sh +# +# 01-aliases.bash +# bryson's bash aliases +# + +shopt -s expand_aliases + +# 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 ../../..' + +# binary renames +alias java='/usr/java/jdk-17.0.1/bin/java' +alias java8='/usr/java/jre1.8.0_291/bin/java' +alias java12='/usr/java/jdk-12.0.2/bin/java' +alias python='python3' + +# quick important file edits +alias todo='vim ~/TODO.md' + +# go to directory with files from iPhone +alias iPhone='cd /home/bryson/Downloads/from-iPhone' + +# common combinations when programming +alias gs='gs -dNOSAFER' +alias django='python manage.py' +alias smci='sudo make clean install' -- cgit v1.2.3