1
0
Fork 0
mirror of https://gitlab.com/dwt1/dotfiles.git synced 2023-02-13 20:55:19 -05:00

Editing shell configs for bash, fish, zsh.

This commit is contained in:
Derek Taylor 2021-08-29 19:53:03 -05:00
parent 6209a78b5d
commit ca35d06535
3 changed files with 22 additions and 73 deletions

25
.bashrc
View file

@ -134,13 +134,6 @@ alias doomdoctor="~/.emacs.d/bin/doom doctor"
alias doomupgrade="~/.emacs.d/bin/doom upgrade"
alias doompurge="~/.emacs.d/bin/doom purge"
# bat
# alias cat='bat'
# broot
alias br='broot -dhp'
alias bs='broot --sizes'
# Changing "ls" to "exa"
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
alias la='exa -a --color=always --group-directories-first' # all files and dirs
@ -244,22 +237,20 @@ alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/mas
# Unlock LBRY tips
alias tips='lbrynet txo spend --type=support --is_not_my_input --blocking'
# Thinkorswim
alias tos="~/thinkorswim/thinkorswim"
### Skel ###
# Copy/paste all content of /etc/skel over to home folder.
# A backup of config is created. BEWARE!
alias skel='[ -d ~/.config ] || mkdir ~/.config && cp -Rf ~/.config ~/.config-backup-$(date +%Y.%m.%d-%H.%M.%S) && cp -rf /etc/skel/* ~'
# force all kakoune windows into one session
alias kak="/usr/bin/kak -c mysession"
alias kaks="/usr/bin/kak -s mysession"
alias kakd="/usr/bin/kak -d -s mysession &"
### Backup Skel ###
# backup contents of /etc/skel to hidden backup folder in $HOME.
alias bupskel='cp -Rf /etc/skel ~/.skel-backup-$(date +%Y.%m.%d-%H.%M.%S)'
### RANDOM COLOR SCRIPT ###
# Get this script from my GitLab: gitlab.com/dwt1/shell-color-scripts
# Or install it from the Arch User Repository: shell-color-scripts
colorscript random
### SOURCING BROOT ###
source ~/.config/broot/launcher/bash/br
### BASH INSULTER ###
if [ -f /etc/bash.command-not-found ]; then
. /etc/bash.command-not-found
@ -267,5 +258,3 @@ fi
### SETTING THE STARSHIP PROMPT ###
eval "$(starship init bash)"
source /home/dt/.config/broot/launcher/bash/br

View file

@ -206,7 +206,6 @@ end
### ALIASES ###
# spark aliases
alias clear='/bin/clear; echo; echo; seq 1 (tput cols) | sort -R | spark | lolcat; echo; echo'
# root privileges
@ -228,13 +227,6 @@ alias doomdoctor="~/.emacs.d/bin/doom doctor"
alias doomupgrade="~/.emacs.d/bin/doom upgrade"
alias doompurge="~/.emacs.d/bin/doom purge"
# bat
# alias cat='bat'
# broot
alias br='broot -dhp'
alias bs='broot --sizes'
# Changing "ls" to "exa"
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
alias la='exa -a --color=always --group-directories-first' # all files and dirs
@ -337,13 +329,14 @@ alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/mas
# Unlock LBRY tips
alias tips="lbrynet txo spend --type=support --is_not_my_input --blocking"
# Thinkorswim
alias tos="~/thinkorswim/thinkorswim"
### Skel ###
# Copy/paste all content of /etc/skel over to home folder.
# A backup of config is created. BEWARE!
alias skel='[ -d ~/.config ] || mkdir ~/.config && cp -Rf ~/.config ~/.config-backup-(date +%Y.%m.%d-%H.%M.%S) && cp -rf /etc/skel/* ~'
# force all kakoune windows into one session
alias kak="/usr/bin/kak -c mysession"
alias kaks="/usr/bin/kak -s mysession"
alias kakd="/usr/bin/kak -d -s mysession &"
### Backup Skel ###
# backup contents of /etc/skel to hidden backup folder in $HOME.
alias bupskel='cp -Rf /etc/skel ~/.skel-backup-(date +%Y.%m.%d-%H.%M.%S)'
### RANDOM COLOR SCRIPT ###
# Get this script from my GitLab: gitlab.com/dwt1/shell-color-scripts

49
.zshrc
View file

@ -96,27 +96,6 @@ fi
IFS=$SAVEIFS
### OH MY ZSH ###
# Path to your oh-my-zsh installation.
ZSH=$HOME/.oh-my-zsh
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Add wisely, as too many plugins slow down shell startup.
# Defning the plugins needs to happen before sourcing oh-my-zsh.
plugins=(command-not-found
emacs
git
history
zsh-interactive-cd)
# Sourcing oh-my-zsh
# Your plugins will not work without this source.
source $ZSH/oh-my-zsh.sh
### ALIASES ###
# root privileges
@ -150,12 +129,6 @@ alias doomsync="~/.emacs.d/bin/doom sync"
alias doomdoctor="~/.emacs.d/bin/doom doctor"
alias doomupgrade="~/.emacs.d/bin/doom upgrade"
alias doompurge="~/.emacs.d/bin/doom purge"
# bat
# alias cat='bat'
# broot
alias br='broot -dhp'
alias bs='broot --sizes'
# Changing "ls" to "exa"
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
@ -259,23 +232,21 @@ alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/mas
# Unlock LBRY tips
alias tips='lbrynet txo spend --type=support --is_not_my_input --blocking'
# Thinkorswim
alias tos="~/thinkorswim/thinkorswim"
### Skel ###
# Copy/paste all content of /etc/skel over to home folder.
# A backup of config is created. BEWARE!
alias skel='[ -d ~/.config ] || mkdir ~/.config && cp -Rf ~/.config ~/.config-backup-$(date +%Y.%m.%d-%H.%M.%S) && cp -rf /etc/skel/* ~'
# force all kakoune windows into one session
alias kak="/usr/bin/kak -c mysession"
alias kaks="/usr/bin/kak -s mysession"
alias kakd="/usr/bin/kak -d -s mysession &"
### Backup Skel ###
# backup contents of /etc/skel to hidden backup folder in $HOME.
alias bupskel='cp -Rf /etc/skel ~/.skel-backup-$(date +%Y.%m.%d-%H.%M.%S)'
### RANDOM COLOR SCRIPT ###
# Get this script from my GitLab: gitlab.com/dwt1/shell-color-scripts
# Or install it from the Arch User Repository: shell-color-scripts
colorscript random
### SOURCING BROOT ###
source ~/.config/broot/launcher/bash/br
### BASH INSULTER ###
### BASH INSULTER (works in zsh though) ###
if [ -f /etc/bash.command-not-found ]; then
. /etc/bash.command-not-found
fi
@ -283,7 +254,3 @@ fi
### SETTING THE STARSHIP PROMPT ###
eval "$(starship init zsh)"
source /home/dt/.config/broot/launcher/bash/br