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:
parent
6209a78b5d
commit
ca35d06535
3 changed files with 22 additions and 73 deletions
25
.bashrc
25
.bashrc
|
@ -134,13 +134,6 @@ alias doomdoctor="~/.emacs.d/bin/doom doctor"
|
||||||
alias doomupgrade="~/.emacs.d/bin/doom upgrade"
|
alias doomupgrade="~/.emacs.d/bin/doom upgrade"
|
||||||
alias doompurge="~/.emacs.d/bin/doom purge"
|
alias doompurge="~/.emacs.d/bin/doom purge"
|
||||||
|
|
||||||
# bat
|
|
||||||
# alias cat='bat'
|
|
||||||
|
|
||||||
# broot
|
|
||||||
alias br='broot -dhp'
|
|
||||||
alias bs='broot --sizes'
|
|
||||||
|
|
||||||
# Changing "ls" to "exa"
|
# Changing "ls" to "exa"
|
||||||
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
|
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
|
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
|
# Unlock LBRY tips
|
||||||
alias tips='lbrynet txo spend --type=support --is_not_my_input --blocking'
|
alias tips='lbrynet txo spend --type=support --is_not_my_input --blocking'
|
||||||
|
|
||||||
# Thinkorswim
|
### Skel ###
|
||||||
alias tos="~/thinkorswim/thinkorswim"
|
# 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
|
### Backup Skel ###
|
||||||
alias kak="/usr/bin/kak -c mysession"
|
# backup contents of /etc/skel to hidden backup folder in $HOME.
|
||||||
alias kaks="/usr/bin/kak -s mysession"
|
alias bupskel='cp -Rf /etc/skel ~/.skel-backup-$(date +%Y.%m.%d-%H.%M.%S)'
|
||||||
alias kakd="/usr/bin/kak -d -s mysession &"
|
|
||||||
|
|
||||||
### RANDOM COLOR SCRIPT ###
|
### RANDOM COLOR SCRIPT ###
|
||||||
# Get this script from my GitLab: gitlab.com/dwt1/shell-color-scripts
|
# Get this script from my GitLab: gitlab.com/dwt1/shell-color-scripts
|
||||||
# Or install it from the Arch User Repository: shell-color-scripts
|
# Or install it from the Arch User Repository: shell-color-scripts
|
||||||
colorscript random
|
colorscript random
|
||||||
|
|
||||||
### SOURCING BROOT ###
|
|
||||||
source ~/.config/broot/launcher/bash/br
|
|
||||||
|
|
||||||
### BASH INSULTER ###
|
### BASH INSULTER ###
|
||||||
if [ -f /etc/bash.command-not-found ]; then
|
if [ -f /etc/bash.command-not-found ]; then
|
||||||
. /etc/bash.command-not-found
|
. /etc/bash.command-not-found
|
||||||
|
@ -267,5 +258,3 @@ fi
|
||||||
|
|
||||||
### SETTING THE STARSHIP PROMPT ###
|
### SETTING THE STARSHIP PROMPT ###
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
|
|
||||||
source /home/dt/.config/broot/launcher/bash/br
|
|
||||||
|
|
|
@ -206,7 +206,6 @@ end
|
||||||
|
|
||||||
|
|
||||||
### ALIASES ###
|
### ALIASES ###
|
||||||
# spark aliases
|
|
||||||
alias clear='/bin/clear; echo; echo; seq 1 (tput cols) | sort -R | spark | lolcat; echo; echo'
|
alias clear='/bin/clear; echo; echo; seq 1 (tput cols) | sort -R | spark | lolcat; echo; echo'
|
||||||
|
|
||||||
# root privileges
|
# root privileges
|
||||||
|
@ -228,13 +227,6 @@ alias doomdoctor="~/.emacs.d/bin/doom doctor"
|
||||||
alias doomupgrade="~/.emacs.d/bin/doom upgrade"
|
alias doomupgrade="~/.emacs.d/bin/doom upgrade"
|
||||||
alias doompurge="~/.emacs.d/bin/doom purge"
|
alias doompurge="~/.emacs.d/bin/doom purge"
|
||||||
|
|
||||||
# bat
|
|
||||||
# alias cat='bat'
|
|
||||||
|
|
||||||
# broot
|
|
||||||
alias br='broot -dhp'
|
|
||||||
alias bs='broot --sizes'
|
|
||||||
|
|
||||||
# Changing "ls" to "exa"
|
# Changing "ls" to "exa"
|
||||||
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
|
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
|
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
|
# Unlock LBRY tips
|
||||||
alias tips="lbrynet txo spend --type=support --is_not_my_input --blocking"
|
alias tips="lbrynet txo spend --type=support --is_not_my_input --blocking"
|
||||||
|
|
||||||
# Thinkorswim
|
### Skel ###
|
||||||
alias tos="~/thinkorswim/thinkorswim"
|
# 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
|
### Backup Skel ###
|
||||||
alias kak="/usr/bin/kak -c mysession"
|
# backup contents of /etc/skel to hidden backup folder in $HOME.
|
||||||
alias kaks="/usr/bin/kak -s mysession"
|
alias bupskel='cp -Rf /etc/skel ~/.skel-backup-(date +%Y.%m.%d-%H.%M.%S)'
|
||||||
alias kakd="/usr/bin/kak -d -s mysession &"
|
|
||||||
|
|
||||||
### RANDOM COLOR SCRIPT ###
|
### RANDOM COLOR SCRIPT ###
|
||||||
# Get this script from my GitLab: gitlab.com/dwt1/shell-color-scripts
|
# Get this script from my GitLab: gitlab.com/dwt1/shell-color-scripts
|
||||||
|
|
49
.zshrc
49
.zshrc
|
@ -96,27 +96,6 @@ fi
|
||||||
|
|
||||||
IFS=$SAVEIFS
|
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 ###
|
### ALIASES ###
|
||||||
|
|
||||||
# root privileges
|
# root privileges
|
||||||
|
@ -150,12 +129,6 @@ alias doomsync="~/.emacs.d/bin/doom sync"
|
||||||
alias doomdoctor="~/.emacs.d/bin/doom doctor"
|
alias doomdoctor="~/.emacs.d/bin/doom doctor"
|
||||||
alias doomupgrade="~/.emacs.d/bin/doom upgrade"
|
alias doomupgrade="~/.emacs.d/bin/doom upgrade"
|
||||||
alias doompurge="~/.emacs.d/bin/doom purge"
|
alias doompurge="~/.emacs.d/bin/doom purge"
|
||||||
# bat
|
|
||||||
# alias cat='bat'
|
|
||||||
|
|
||||||
# broot
|
|
||||||
alias br='broot -dhp'
|
|
||||||
alias bs='broot --sizes'
|
|
||||||
|
|
||||||
# Changing "ls" to "exa"
|
# Changing "ls" to "exa"
|
||||||
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
|
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
|
# Unlock LBRY tips
|
||||||
alias tips='lbrynet txo spend --type=support --is_not_my_input --blocking'
|
alias tips='lbrynet txo spend --type=support --is_not_my_input --blocking'
|
||||||
|
|
||||||
# Thinkorswim
|
### Skel ###
|
||||||
alias tos="~/thinkorswim/thinkorswim"
|
# 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
|
### Backup Skel ###
|
||||||
alias kak="/usr/bin/kak -c mysession"
|
# backup contents of /etc/skel to hidden backup folder in $HOME.
|
||||||
alias kaks="/usr/bin/kak -s mysession"
|
alias bupskel='cp -Rf /etc/skel ~/.skel-backup-$(date +%Y.%m.%d-%H.%M.%S)'
|
||||||
alias kakd="/usr/bin/kak -d -s mysession &"
|
|
||||||
|
|
||||||
### RANDOM COLOR SCRIPT ###
|
### RANDOM COLOR SCRIPT ###
|
||||||
# Get this script from my GitLab: gitlab.com/dwt1/shell-color-scripts
|
# Get this script from my GitLab: gitlab.com/dwt1/shell-color-scripts
|
||||||
# Or install it from the Arch User Repository: shell-color-scripts
|
# Or install it from the Arch User Repository: shell-color-scripts
|
||||||
colorscript random
|
colorscript random
|
||||||
|
|
||||||
### SOURCING BROOT ###
|
### BASH INSULTER (works in zsh though) ###
|
||||||
source ~/.config/broot/launcher/bash/br
|
|
||||||
|
|
||||||
### BASH INSULTER ###
|
|
||||||
if [ -f /etc/bash.command-not-found ]; then
|
if [ -f /etc/bash.command-not-found ]; then
|
||||||
. /etc/bash.command-not-found
|
. /etc/bash.command-not-found
|
||||||
fi
|
fi
|
||||||
|
@ -283,7 +254,3 @@ fi
|
||||||
### SETTING THE STARSHIP PROMPT ###
|
### SETTING THE STARSHIP PROMPT ###
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
source /home/dt/.config/broot/launcher/bash/br
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue