Minor edits.

This commit is contained in:
Derek Taylor
2019-10-21 18:15:46 -05:00
parent 6921c275cb
commit 7852907bc2
5 changed files with 41 additions and 19 deletions
+30 -17
View File
@@ -6,7 +6,7 @@
# #
# My bash config. # My bash config.
EDITOR=vim EDITOR="emacsclient -c"
export TERM="st-256color" export TERM="st-256color"
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
@@ -42,7 +42,7 @@ colors() {
# Change the window title of X terminals # Change the window title of X terminals
case ${TERM} in case ${TERM} in
xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*) xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|st|interix|konsole*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"' PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
;; ;;
screen*) screen*)
@@ -97,16 +97,6 @@ fi
unset use_color safe_term match_lhs sh unset use_color safe_term match_lhs sh
alias cp="cp -i" # confirm before overwriting something
alias df='df -h' # human-readable sizes
alias free='free -m' # show sizes in MB
alias np='nano -w PKGBUILD'
alias more=less
# terminal rickroll!
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
xhost +local:root > /dev/null 2>&1 xhost +local:root > /dev/null 2>&1
complete -cf sudo complete -cf sudo
@@ -124,9 +114,8 @@ shopt -s expand_aliases
# Enable history appending instead of overwriting. #139609 # Enable history appending instead of overwriting. #139609
shopt -s histappend shopt -s histappend
# ### ARCHIVE EXTRACTION ###
# # ex - archive extractor # usage: ex <file>
# # usage: ex <file>
ex () ex ()
{ {
if [ -f $1 ] ; then if [ -f $1 ] ; then
@@ -149,13 +138,37 @@ ex ()
fi fi
} }
# better yaourt colors ### ALIASES ###
export YAOURT_COLORS="nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1;41;5:votes=1;44:dsc=0:other=1;35" # navigation
alias ..='cd ..'
alias ...='cd .. ; cd ..'
# 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
alias ll='exa -l --color=always --group-directories-first' # long format
alias lt='exa -aT --color=always --group-directories-first' # tree listing
# adding flags
alias cp="cp -i" # confirm before overwriting something
alias df='df -h' # human-readable sizes
alias free='free -m' # show sizes in MB
alias lynx='lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss -vikeys' alias lynx='lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss -vikeys'
# the terminal rickroll
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
# bare git repo alias for dotfiles
alias config='/usr/bin/git --git-dir=/home/dt/dotfiles --work-tree=/home/dt' alias config='/usr/bin/git --git-dir=/home/dt/dotfiles --work-tree=/home/dt'
# termbin
alias tb="nc termbin.com 9999" alias tb="nc termbin.com 9999"
### ENABLE VI MODE ###
set -o vi set -o vi
### SET VIM AS MANPAGER ###
export MANPAGER="/bin/sh -c \"col -b | vim --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\"" export MANPAGER="/bin/sh -c \"col -b | vim --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\""
### BASH POWERLINE ###
source ~/.bash-powerline.sh
+9 -1
View File
@@ -27,7 +27,7 @@
("melpa-stable" . "http://stable.melpa.org/packages/")))) ("melpa-stable" . "http://stable.melpa.org/packages/"))))
'(package-selected-packages '(package-selected-packages
(quote (quote
(undo-tree rainbow-mode pdf-tools emojify minimap lua-mode haskell-mode ##))) (multi-term org-bullets undo-tree rainbow-mode pdf-tools emojify minimap lua-mode haskell-mode ##)))
'(scroll-bar-mode nil) '(scroll-bar-mode nil)
'(tool-bar-mode nil) '(tool-bar-mode nil)
'(tooltip-mode nil)) '(tooltip-mode nil))
@@ -52,6 +52,14 @@
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(default ((t (:family "mononoki Nerd Font Mono" :foundry "UKWN" :slant normal :weight normal :height 120 :width normal))))) '(default ((t (:family "mononoki Nerd Font Mono" :foundry "UKWN" :slant normal :weight normal :height 120 :width normal)))))
(require 'org-bullets)
;; (setq org-bullets-bullet-list '("☯" "○" "✸" "✿" "~"))
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
;; minimal rendering by default in eww
(setq-default shr-inhibit-images t)`
(setq-default shr-use-fonts nil)
;;; Keybindings ;;; Keybindings
(global-set-key (kbd "C->") 'indent-rigidly-right-to-tab-stop) ; Indent selection by one tab length (global-set-key (kbd "C->") 'indent-rigidly-right-to-tab-stop) ; Indent selection by one tab length
(global-set-key (kbd "C-<") 'indent-rigidly-left-to-tab-stop) ; De-indent selection by one tab length (global-set-key (kbd "C-<") 'indent-rigidly-left-to-tab-stop) ; De-indent selection by one tab length
Binary file not shown.
+1
View File
@@ -250,6 +250,7 @@ myKeys =
--- Dmenu Scripts (Alt+Ctr+Key) --- Dmenu Scripts (Alt+Ctr+Key)
, ("M1-C-<Return>", spawn "dmenu_run -fn 'UbuntuMono Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'") , ("M1-C-<Return>", spawn "dmenu_run -fn 'UbuntuMono Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'")
, ("M1-C-e", spawn "./.dmenu/dmenu-edit-configs.sh") , ("M1-C-e", spawn "./.dmenu/dmenu-edit-configs.sh")
, ("M1-C-h", spawn "./.dmenu/dmenu-hugo.sh")
, ("M1-C-m", spawn "./.dmenu/dmenu-sysmon.sh") , ("M1-C-m", spawn "./.dmenu/dmenu-sysmon.sh")
, ("M1-C-p", spawn "passmenu") , ("M1-C-p", spawn "passmenu")
, ("M1-C-s", spawn "./.dmenu/dmenu-surfraw.sh") , ("M1-C-s", spawn "./.dmenu/dmenu-surfraw.sh")
+1 -1
View File
@@ -140,7 +140,7 @@ alias cp="cp -i" # confirm before overwriting something
alias df='df -h' # human-readable sizes alias df='df -h' # human-readable sizes
alias grep='grep --colour=auto' alias grep='grep --colour=auto'
alias lynx='lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss -vikeys' #alias lynx='lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss -vikeys'
zstyle ':completion:*' completer _expand_alias _complete _ignored zstyle ':completion:*' completer _expand_alias _complete _ignored
alias tb="nc termbin.com 9999" alias tb="nc termbin.com 9999"