mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-11 02:21:14 +10:00
Minor edits
This commit is contained in:
@@ -89,16 +89,26 @@ ex ()
|
|||||||
|
|
||||||
# root privileges
|
# root privileges
|
||||||
alias doas="doas --"
|
alias doas="doas --"
|
||||||
alias sudo='sudo '
|
|
||||||
|
|
||||||
# navigation
|
# navigation
|
||||||
alias ..='cd ..'
|
alias ..='cd ..'
|
||||||
alias ...='cd ../..'
|
alias ...='cd ../..'
|
||||||
|
alias .3='cd ../../..'
|
||||||
|
alias .4='cd ../../..'
|
||||||
|
alias .5='cd ../../../..'
|
||||||
|
alias .6='cd ../../../../..'
|
||||||
|
|
||||||
# vim and emacs
|
# vim and emacs
|
||||||
alias vim=nvim
|
alias vim="nvim"
|
||||||
alias em="/usr/bin/emacs -nw"
|
alias em="/usr/bin/emacs -nw"
|
||||||
alias emacs="emacsclient -c -a ''"
|
alias emacs="emacsclient -c -a 'emacs'"
|
||||||
|
|
||||||
|
# pacman and yay
|
||||||
|
alias pacsyu='sudo pacman -Syyu' # update only standard pkgs
|
||||||
|
alias yaysua="yay -Sua --noconfirm" # update only AUR pkgs
|
||||||
|
alias yaysyu="yay -Syu --noconfirm" # update standard pkgs and AUR pkgs
|
||||||
|
alias unlock="sudo rm /var/lib/pacman/db.lck" # remove pacman lock
|
||||||
|
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages
|
||||||
|
|
||||||
# get fastest mirrors
|
# get fastest mirrors
|
||||||
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
||||||
@@ -106,13 +116,6 @@ alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/p
|
|||||||
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
||||||
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
||||||
|
|
||||||
# pacman and yay
|
|
||||||
alias pksyu='sudo pacman -Syyu' # update only standard pkgs
|
|
||||||
alias pksua="yay -Sua --noconfirm" # update only AUR pkgs
|
|
||||||
alias pksyua="yay -Syu --noconfirm" # update standard pkgs and AUR pkgs
|
|
||||||
alias unlock="sudo rm /var/lib/pacman/db.lck" # remove pacman lock
|
|
||||||
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages
|
|
||||||
|
|
||||||
# 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
|
||||||
@@ -132,6 +135,27 @@ 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'
|
||||||
alias vifm='./.config/vifm/scripts/vifmrun'
|
alias vifm='./.config/vifm/scripts/vifmrun'
|
||||||
|
|
||||||
|
## get top process eating memory
|
||||||
|
alias psmem='ps auxf | sort -nr -k 4'
|
||||||
|
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
|
||||||
|
|
||||||
|
## get top process eating cpu ##
|
||||||
|
alias pscpu='ps auxf | sort -nr -k 3'
|
||||||
|
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
|
||||||
|
|
||||||
|
# git
|
||||||
|
alias addup='git add -u'
|
||||||
|
alias addall='git add .'
|
||||||
|
alias branch='git branch'
|
||||||
|
alias checkout='git checkout'
|
||||||
|
alias commit='git commit -m'
|
||||||
|
alias fetch='git fetch'
|
||||||
|
alias pull='git pull origin'
|
||||||
|
alias push='git push origin'
|
||||||
|
alias status='git status'
|
||||||
|
alias tag='git tag'
|
||||||
|
alias newtag='git tag -a'
|
||||||
|
|
||||||
# shutdown or reboot
|
# shutdown or reboot
|
||||||
alias ssn="sudo shutdown now"
|
alias ssn="sudo shutdown now"
|
||||||
alias sr="sudo reboot"
|
alias sr="sudo reboot"
|
||||||
@@ -159,8 +183,10 @@ alias yta-vorbis="youtube-dl --extract-audio --audio-format vorbis "
|
|||||||
alias yta-wav="youtube-dl --extract-audio --audio-format wav "
|
alias yta-wav="youtube-dl --extract-audio --audio-format wav "
|
||||||
alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
||||||
|
|
||||||
# the terminal rickroll
|
# switch between shells
|
||||||
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
|
alias tobash="sudo chsh $USER -s /bin/bash && echo 'Now log out.'"
|
||||||
|
alias tozsh="sudo chsh $USER -s /bin/zsh && echo 'Now log out.'"
|
||||||
|
alias tofish="sudo chsh $USER -s /bin/fish && echo 'Now log out.'"
|
||||||
|
|
||||||
# bare git repo alias for dotfiles
|
# bare git repo alias for dotfiles
|
||||||
alias config="/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME"
|
alias config="/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME"
|
||||||
@@ -168,5 +194,8 @@ alias config="/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME"
|
|||||||
# termbin
|
# termbin
|
||||||
alias tb="nc termbin.com 9999"
|
alias tb="nc termbin.com 9999"
|
||||||
|
|
||||||
|
# the terminal rickroll
|
||||||
|
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
|
||||||
|
|
||||||
### RANDOM COLOR SCRIPT ###
|
### RANDOM COLOR SCRIPT ###
|
||||||
/opt/shell-color-scripts/colorscript.sh random
|
/opt/shell-color-scripts/colorscript.sh random
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ call plug#begin('~/.vim/plugged')
|
|||||||
Plug 'gmarik/Vundle.vim' " Vundle
|
Plug 'gmarik/Vundle.vim' " Vundle
|
||||||
Plug 'itchyny/lightline.vim' " Lightline statusbar
|
Plug 'itchyny/lightline.vim' " Lightline statusbar
|
||||||
Plug 'suan/vim-instant-markdown', {'rtp': 'after'} " Markdown Preview
|
Plug 'suan/vim-instant-markdown', {'rtp': 'after'} " Markdown Preview
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
||||||
Plug 'frazrepo/vim-rainbow'
|
Plug 'frazrepo/vim-rainbow'
|
||||||
"{{ File management }}
|
"{{ File management }}
|
||||||
Plug 'vifm/vifm.vim' " Vifm
|
Plug 'vifm/vifm.vim' " Vifm
|
||||||
|
|||||||
@@ -148,4 +148,5 @@ case "$choice" in
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
emacsclient -c -a emacs "$choice"
|
alacritty -e nvim "$choice"
|
||||||
|
# emacsclient -c -a emacs "$choice"
|
||||||
|
|||||||
@@ -1,106 +0,0 @@
|
|||||||
# It's best to put these in a .lss file and use "lynx -lss=file.lss whatever"
|
|
||||||
# for now.
|
|
||||||
#
|
|
||||||
# Normal type styles correspond to HTML tags.
|
|
||||||
#
|
|
||||||
# The next line (beginning with "em") means: use bold if mono, otherwise
|
|
||||||
# brightblue on <defaultbackground>
|
|
||||||
em:bold:brightblue
|
|
||||||
strong:bold:brightred
|
|
||||||
b:bold:red:black
|
|
||||||
i:bold:brightblue
|
|
||||||
a:bold:green:black
|
|
||||||
img:dim:brown:black
|
|
||||||
fig:normal:gray
|
|
||||||
caption:reverse:brown
|
|
||||||
hr:normal:yellow
|
|
||||||
blockquote:normal:brightblue
|
|
||||||
ul:normal:brown
|
|
||||||
address:normal:magenta
|
|
||||||
title:normal:magenta
|
|
||||||
tt:dim:brightmagenta:default
|
|
||||||
h1:bold:yellow:blue
|
|
||||||
h2:normal:brown:blue
|
|
||||||
h3:normal:green:blue
|
|
||||||
h4:normal:cyan:blue
|
|
||||||
label:normal:magenta
|
|
||||||
q:normal:yellow:magenta
|
|
||||||
small:dim:default
|
|
||||||
big:bold:yellow
|
|
||||||
sup:bold:yellow
|
|
||||||
sub:dim:gray
|
|
||||||
lh:bold:yellow:magenta
|
|
||||||
li:normal:magenta:black
|
|
||||||
code:normal:cyan
|
|
||||||
cite:normal:cyan
|
|
||||||
|
|
||||||
table:normal:brightcyan
|
|
||||||
th:normal:default:black
|
|
||||||
tr:bold:brown:black
|
|
||||||
td:normal:default
|
|
||||||
br:normal:default
|
|
||||||
|
|
||||||
# Special styles - not corresponding directly to HTML tags
|
|
||||||
# alert - status bar, when message begins "Alert".
|
|
||||||
# alink - active link
|
|
||||||
# normal - default attributes
|
|
||||||
# status - status bar
|
|
||||||
# whereis - whereis search target
|
|
||||||
#
|
|
||||||
normal:normal:brightblue:default
|
|
||||||
default: normal: white:black
|
|
||||||
alink:reverse:yellow:gray
|
|
||||||
status:reverse:default:blue
|
|
||||||
alert:bold:yellow:red
|
|
||||||
whereis:reverse+underline:magenta:cyan
|
|
||||||
# currently not used
|
|
||||||
#value:normal:green
|
|
||||||
#high:bold:brightmagenta
|
|
||||||
forwbackw.arrow:reverse
|
|
||||||
|
|
||||||
# Styles with classes - <ul class=red> etc.
|
|
||||||
ul.red:underline:brightred
|
|
||||||
ul.blue:bold:brightblue
|
|
||||||
li.red:reverse:red:yellow
|
|
||||||
li.blue:bold:blue
|
|
||||||
strong.a:bold:black:red
|
|
||||||
em.a:reverse:black:blue
|
|
||||||
strong.b:bold:white:red
|
|
||||||
em.b:reverse:white:blue
|
|
||||||
strong.debug:reverse:green
|
|
||||||
font.letter:normal:default:blue
|
|
||||||
input.submit:normal:cyan
|
|
||||||
tr.baone:bold:yellow
|
|
||||||
tr.batwo:bold:green
|
|
||||||
tr.bathree:bold:red
|
|
||||||
#
|
|
||||||
# Special handling for link.
|
|
||||||
link:normal:white:gray
|
|
||||||
link.green:bold:brightgreen
|
|
||||||
link.red:bold:black:red
|
|
||||||
link.blue:bold:white:blue
|
|
||||||
link.toc:bold:black:white
|
|
||||||
# Special cases for link - the rel or title is appended after the class.
|
|
||||||
# <link rel=next class=red href="1">
|
|
||||||
link.red.next:bold:red
|
|
||||||
link.red.prev:bold:yellow:red
|
|
||||||
link.blue.prev:bold:yellow:blue
|
|
||||||
link.blue.next:bold:blue
|
|
||||||
link.green.toc:bold:white:green
|
|
||||||
#
|
|
||||||
# Define styles that will be used when syntax highlighting is requested
|
|
||||||
# (commandline option -prettysrc).
|
|
||||||
span.htmlsrc_comment:normal:white
|
|
||||||
span.htmlsrc_tag:normal:white
|
|
||||||
#If you don't like that the tag name and attribute name are displayed
|
|
||||||
#in different colors, comment the following line.
|
|
||||||
span.htmlsrc_attrib:normal:cyan
|
|
||||||
span.htmlsrc_attrval:normal:magenta
|
|
||||||
span.htmlsrc_abracket:normal:white
|
|
||||||
span.htmlsrc_entity:normal:white
|
|
||||||
##span.htmlsrc_href:
|
|
||||||
##span.htmlsrc_entire:
|
|
||||||
span.htmlsrc_badseq:normal:red
|
|
||||||
span.htmlsrc_badtag:normal:red
|
|
||||||
span.htmlsrc_badattr:normal:red
|
|
||||||
span.htmlsrc_sgmlspecial:normal:yellow
|
|
||||||
+1
-1
@@ -966,7 +966,7 @@ myKeys =
|
|||||||
, ("M-M1-f", spawn (myTerminal ++ " -e sh ./.config/vifm/scripts/vifmrun"))
|
, ("M-M1-f", spawn (myTerminal ++ " -e sh ./.config/vifm/scripts/vifmrun"))
|
||||||
, ("M-M1-i", spawn (myTerminal ++ " -e irssi"))
|
, ("M-M1-i", spawn (myTerminal ++ " -e irssi"))
|
||||||
, ("M-M1-j", spawn (myTerminal ++ " -e joplin"))
|
, ("M-M1-j", spawn (myTerminal ++ " -e joplin"))
|
||||||
, ("M-M1-l", spawn (myTerminal ++ " -e lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss gopher://distro.tube"))
|
, ("M-M1-l", spawn (myTerminal ++ " -e lynx https://distrotube.com"))
|
||||||
, ("M-M1-m", spawn (myTerminal ++ " -e mocp"))
|
, ("M-M1-m", spawn (myTerminal ++ " -e mocp"))
|
||||||
, ("M-M1-n", spawn (myTerminal ++ " -e newsboat"))
|
, ("M-M1-n", spawn (myTerminal ++ " -e newsboat"))
|
||||||
, ("M-M1-p", spawn (myTerminal ++ " -e pianobar"))
|
, ("M-M1-p", spawn (myTerminal ++ " -e pianobar"))
|
||||||
|
|||||||
+1
-1
@@ -795,7 +795,7 @@ myKeys =
|
|||||||
, ("M-M1-f", spawn (myTerminal ++ " -e sh ./.config/vifm/scripts/vifmrun"))
|
, ("M-M1-f", spawn (myTerminal ++ " -e sh ./.config/vifm/scripts/vifmrun"))
|
||||||
, ("M-M1-i", spawn (myTerminal ++ " -e irssi"))
|
, ("M-M1-i", spawn (myTerminal ++ " -e irssi"))
|
||||||
, ("M-M1-j", spawn (myTerminal ++ " -e joplin"))
|
, ("M-M1-j", spawn (myTerminal ++ " -e joplin"))
|
||||||
, ("M-M1-l", spawn (myTerminal ++ " -e lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss gopher://distro.tube"))
|
, ("M-M1-l", spawn (myTerminal ++ " -e lynx https://distrotube.com"))
|
||||||
, ("M-M1-m", spawn (myTerminal ++ " -e mocp"))
|
, ("M-M1-m", spawn (myTerminal ++ " -e mocp"))
|
||||||
, ("M-M1-n", spawn (myTerminal ++ " -e newsboat"))
|
, ("M-M1-n", spawn (myTerminal ++ " -e newsboat"))
|
||||||
, ("M-M1-p", spawn (myTerminal ++ " -e pianobar"))
|
, ("M-M1-p", spawn (myTerminal ++ " -e pianobar"))
|
||||||
|
|||||||
Reference in New Issue
Block a user