aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorBryson Steck <brysonsteck@protonmail.com>2022-11-12 18:20:45 -0700
committerBryson Steck <brysonsteck@protonmail.com>2022-11-12 18:20:45 -0700
commit6cbfdc93d9a9436f11a66ee8e2501d11b5e90efb (patch)
treecd8be50d6de47b383d814f66384cd1b83bf451f6 /bash
parent1e0410734f651a0f2f391caf8c51b1e729960e66 (diff)
downloaddotfiles-6cbfdc93d9a9436f11a66ee8e2501d11b5e90efb.tar
dotfiles-6cbfdc93d9a9436f11a66ee8e2501d11b5e90efb.tar.gz
dotfiles-6cbfdc93d9a9436f11a66ee8e2501d11b5e90efb.tar.bz2
update dots + add some config files
Diffstat (limited to 'bash')
-rw-r--r--bash/.bash/01-aliases.bash44
-rw-r--r--bash/.bash/04-other.bash6
-rw-r--r--bash/.bash_profile2
3 files changed, 32 insertions, 20 deletions
diff --git a/bash/.bash/01-aliases.bash b/bash/.bash/01-aliases.bash
index 87ae24f..a3818cf 100644
--- a/bash/.bash/01-aliases.bash
+++ b/bash/.bash/01-aliases.bash
@@ -31,6 +31,14 @@ alias ...='cd ../..'
alias ....='cd ../../..'
alias back='cd -'
+# local apps
+alias carmine-impact='cd /home/bryson/git/cardboard && ./cardboard_unix'
+alias celeste='cd /home/bryson/apps/celeste && ./Celeste.bin.x86_64'
+alias dont-move='cd /home/bryson/apps/dont-move && ./DontMove'
+alias friday-night-funkin='cd /home/bryson/apps/friday-night-funkin && ./Funkin'
+alias overland='cd /home/bryson/apps/overland && ./Overland.x86_64'
+alias sm64ex='cd /home/bryson/git/sm64ex/build/us_pc/./sm64.us.f3dex2e'
+
# binary renames
alias java='/usr/local/java/jdk-18.0.1.1/bin/java'
alias java11='/usr/bin/java'
@@ -38,36 +46,40 @@ alias python='python3'
alias g++='g++ --std=c++20'
alias j='autojump'
alias vim='vim -p'
+alias gs='gs -dNOSAFER'
+#alias gdb="gdb --tui"
+#alias spt="spotifyd && spt"
# quick important file edits
alias todo='vim ~/.todo/TODO.org'
-# go to directory with files from iPhone
-alias iPhone='cd /home/bryson/Downloads/from-iPhone'
-
# common combinations
-alias gs='gs -dNOSAFER'
alias django='python manage.py'
-alias smci='doas make clean install'
-alias smi='doas make install'
-#alias mount='sudo mount'
-#alias umount='sudo umount'
+alias smci='sudo make clean install'
+alias smi='sudo make install'
+alias library='xrandr --output HDMI-A-0 --auto --set TearFree on --output eDP --off && xset r rate 300 50'
+alias nolibrary='xrandr --output HDMI-A-0 --off --output eDP --auto'
# bash navigation
alias add-alias='vim ~/.bash/01-aliases.bash; . ~/.bash_profile'
+function search() {
+ find . -type f -exec grep ${1} {} \;
+}
+
+function ssh-pixel() {
+ ssh -p 8022 uO_14O@${1}
+}
+
# 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'
+alias package.use='sudo vim /etc/portage/package.use'
+alias make.conf='sudo vim /etc/portage/make.conf'
+alias package.license='sudo vim /etc/portage/package.license'
# other garbage
alias fixwifi='sudo rc-service wpa_supplicant restart'
-#alias spt="spotifyd && spt"
+alias fixaudio='pacmd set-default-sink alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo'
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'
+
diff --git a/bash/.bash/04-other.bash b/bash/.bash/04-other.bash
index bfc494c..ac59c89 100644
--- a/bash/.bash/04-other.bash
+++ b/bash/.bash/04-other.bash
@@ -1,3 +1,3 @@
-#if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
-# exec tmux
-#fi
+# if [[ -z $TMUX ]] && [[ -n $SSH_TTY ]]; then
+# exec tmux new-session -A -s ssh
+# fi
diff --git a/bash/.bash_profile b/bash/.bash_profile
index e553530..7ec459d 100644
--- a/bash/.bash_profile
+++ b/bash/.bash_profile
@@ -8,7 +8,7 @@ if [ -f ~/.bashrc ]; then
fi
# User specific environment and startup programs
-. /usr/share/autojump/autojump.bash
+#. /usr/share/autojump/autojump.bash
export PATH
complete -cf doas