mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-22 11:00:27 +10:00
Adding manpager options in shell configs.
This commit is contained in:
60
.bashrc
60
.bashrc
@@ -13,6 +13,18 @@ export ALTERNATE_EDITOR="" # setting for emacsclient
|
|||||||
export EDITOR="emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
export EDITOR="emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
||||||
export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
||||||
|
|
||||||
|
### SET MANPAGER
|
||||||
|
### Uncomment only one of these!
|
||||||
|
|
||||||
|
### "bat" as manpager
|
||||||
|
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||||
|
|
||||||
|
### "vim" as manpager
|
||||||
|
# export MANPAGER='/bin/bash -c "vim -MRn -c \"set buftype=nofile showtabline=0 ft=man ts=8 nomod nolist norelativenumber nonu noma\" -c \"normal L\" -c \"nmap q :qa<CR>\"</dev/tty <(col -b)"'
|
||||||
|
|
||||||
|
### "nvim" as manpager
|
||||||
|
# export MANPAGER="nvim -c 'set ft=man' -"
|
||||||
|
|
||||||
### SET VI MODE ###
|
### SET VI MODE ###
|
||||||
# Comment this line out to enable default emacs-like bindings
|
# Comment this line out to enable default emacs-like bindings
|
||||||
set -o vi
|
set -o vi
|
||||||
@@ -109,18 +121,12 @@ 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"
|
||||||
|
|
||||||
# pacman and yay
|
# bat
|
||||||
alias pacsyu='sudo pacman -Syyu' # update only standard pkgs
|
# alias cat='bat'
|
||||||
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
|
# broot
|
||||||
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
alias br='broot -dhp'
|
||||||
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
alias bs='broot --sizes'
|
||||||
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"
|
|
||||||
|
|
||||||
# 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
|
||||||
@@ -129,6 +135,21 @@ alias ll='exa -l --color=always --group-directories-first' # long format
|
|||||||
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
||||||
alias l.='exa -a | egrep "^\."'
|
alias l.='exa -a | egrep "^\."'
|
||||||
|
|
||||||
|
# pacman and yay
|
||||||
|
alias pacsyu='sudo pacman -Syyu' # update only standard pkgs
|
||||||
|
alias yaysua='yay -Sua --noconfirm' # update only AUR pkgs (yay)
|
||||||
|
alias yaysyu='yay -Syu --noconfirm' # update standard pkgs and AUR pkgs (yay)
|
||||||
|
alias parsua='paru -Sua --noconfirm' # update only AUR pkgs (paru)
|
||||||
|
alias parsyu='paru -Syu --noconfirm' # update standard pkgs and AUR pkgs (paru)
|
||||||
|
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
|
||||||
|
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
||||||
|
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --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"
|
||||||
|
|
||||||
# Colorize grep output (good for log files)
|
# Colorize grep output (good for log files)
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias egrep='egrep --color=auto'
|
alias egrep='egrep --color=auto'
|
||||||
@@ -153,6 +174,9 @@ alias psmem10='ps auxf | sort -nr -k 4 | head -10'
|
|||||||
alias pscpu='ps auxf | sort -nr -k 3'
|
alias pscpu='ps auxf | sort -nr -k 3'
|
||||||
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
|
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
|
||||||
|
|
||||||
|
# Merge Xresources
|
||||||
|
alias merge='xrdb -merge ~/.Xresources'
|
||||||
|
|
||||||
# git
|
# git
|
||||||
alias addup='git add -u'
|
alias addup='git add -u'
|
||||||
alias addall='git add .'
|
alias addall='git add .'
|
||||||
@@ -163,13 +187,10 @@ alias commit='git commit -m'
|
|||||||
alias fetch='git fetch'
|
alias fetch='git fetch'
|
||||||
alias pull='git pull origin'
|
alias pull='git pull origin'
|
||||||
alias push='git push origin'
|
alias push='git push origin'
|
||||||
alias status='git status'
|
alias stat='git status' # 'status' is protected name so using 'stat' instead
|
||||||
alias tag='git tag'
|
alias tag='git tag'
|
||||||
alias newtag='git tag -a'
|
alias newtag='git tag -a'
|
||||||
|
|
||||||
# Merge Xresources
|
|
||||||
alias merge='xrdb -merge ~/.Xresources'
|
|
||||||
|
|
||||||
# get error messages from journalctl
|
# get error messages from journalctl
|
||||||
alias jctl="journalctl -p 3 -xb"
|
alias jctl="journalctl -p 3 -xb"
|
||||||
|
|
||||||
@@ -191,6 +212,7 @@ 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 "
|
||||||
|
|
||||||
# switch between shells
|
# switch between shells
|
||||||
|
# I do not recommend switching default SHELL from bash.
|
||||||
alias tobash="sudo chsh $USER -s /bin/bash && echo 'Now log out.'"
|
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 tozsh="sudo chsh $USER -s /bin/zsh && echo 'Now log out.'"
|
||||||
alias tofish="sudo chsh $USER -s /bin/fish && echo 'Now log out.'"
|
alias tofish="sudo chsh $USER -s /bin/fish && echo 'Now log out.'"
|
||||||
@@ -207,6 +229,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
|
||||||
|
alias tos="/home/dt/thinkorswim/thinkorswim"
|
||||||
|
|
||||||
|
# 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 &"
|
||||||
|
|
||||||
### 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
|
||||||
|
|||||||
@@ -13,6 +13,18 @@ set TERM "xterm-256color" # Sets the terminal type
|
|||||||
set EDITOR "emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
set EDITOR "emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
||||||
set VISUAL "emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
set VISUAL "emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
||||||
|
|
||||||
|
### SET MANPAGER
|
||||||
|
### Uncomment only one of these!
|
||||||
|
|
||||||
|
### "bat" as manpager
|
||||||
|
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
||||||
|
|
||||||
|
### "vim" as manpager
|
||||||
|
# set -x MANPAGER '/bin/bash -c "vim -MRn -c \"set buftype=nofile showtabline=0 ft=man ts=8 nomod nolist norelativenumber nonu noma\" -c \"normal L\" -c \"nmap q :qa<CR>\"</dev/tty <(col -b)"'
|
||||||
|
|
||||||
|
### "nvim" as manpager
|
||||||
|
# set -x MANPAGER "nvim -c 'set ft=man' -"
|
||||||
|
|
||||||
### SET EITHER DEFAULT EMACS MODE OR VI MODE ###
|
### SET EITHER DEFAULT EMACS MODE OR VI MODE ###
|
||||||
function fish_user_key_bindings
|
function fish_user_key_bindings
|
||||||
# fish_default_key_bindings
|
# fish_default_key_bindings
|
||||||
@@ -211,6 +223,9 @@ 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
|
# broot
|
||||||
alias br='broot -dhp'
|
alias br='broot -dhp'
|
||||||
alias bs='broot --sizes'
|
alias bs='broot --sizes'
|
||||||
@@ -220,11 +235,14 @@ alias ls='exa -al --color=always --group-directories-first' # my preferred listi
|
|||||||
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
|
||||||
alias ll='exa -l --color=always --group-directories-first' # long format
|
alias ll='exa -l --color=always --group-directories-first' # long format
|
||||||
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
||||||
|
alias l.='exa -a | egrep "^\."'
|
||||||
|
|
||||||
# pacman and yay
|
# pacman and yay
|
||||||
alias pacsyu='sudo pacman -Syyu' # update only standard pkgs
|
alias pacsyu='sudo pacman -Syyu' # update only standard pkgs
|
||||||
alias yaysua='yay -Sua --noconfirm' # update only AUR pkgs
|
alias yaysua='yay -Sua --noconfirm' # update only AUR pkgs (yay)
|
||||||
alias yaysyu='yay -Syu --noconfirm' # update standard pkgs and AUR pkgs
|
alias yaysyu='yay -Syu --noconfirm' # update standard pkgs and AUR pkgs (yay)
|
||||||
|
alias parsua='paru -Sua --noconfirm' # update only AUR pkgs (paru)
|
||||||
|
alias parsyu='paru -Syu --noconfirm' # update standard pkgs and AUR pkgs (paru)
|
||||||
alias unlock='sudo rm /var/lib/pacman/db.lck' # remove pacman lock
|
alias unlock='sudo rm /var/lib/pacman/db.lck' # remove pacman lock
|
||||||
alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # remove orphaned packages
|
alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # remove orphaned packages
|
||||||
|
|
||||||
@@ -261,6 +279,20 @@ alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
|
|||||||
# Merge Xresources
|
# Merge Xresources
|
||||||
alias merge='xrdb -merge ~/.Xresources'
|
alias merge='xrdb -merge ~/.Xresources'
|
||||||
|
|
||||||
|
# git
|
||||||
|
alias addup='git add -u'
|
||||||
|
alias addall='git add .'
|
||||||
|
alias branch='git branch'
|
||||||
|
alias checkout='git checkout'
|
||||||
|
alias clone='git clone'
|
||||||
|
alias commit='git commit -m'
|
||||||
|
alias fetch='git fetch'
|
||||||
|
alias pull='git pull origin'
|
||||||
|
alias push='git push origin'
|
||||||
|
alias stat='git status' # 'status' is protected name so using 'stat' instead
|
||||||
|
alias tag='git tag'
|
||||||
|
alias newtag='git tag -a'
|
||||||
|
|
||||||
# get error messages from journalctl
|
# get error messages from journalctl
|
||||||
alias jctl="journalctl -p 3 -xb"
|
alias jctl="journalctl -p 3 -xb"
|
||||||
|
|
||||||
@@ -282,22 +314,26 @@ 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 "
|
||||||
|
|
||||||
# switch between shells
|
# switch between shells
|
||||||
|
# I do not recommend switching default SHELL from bash.
|
||||||
alias tobash="sudo chsh $USER -s /bin/bash && echo 'Now log out.'"
|
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 tozsh="sudo chsh $USER -s /bin/zsh && echo 'Now log out.'"
|
||||||
alias tofish="sudo chsh $USER -s /bin/fish && echo 'Now log out.'"
|
alias tofish="sudo chsh $USER -s /bin/fish && echo 'Now log out.'"
|
||||||
|
|
||||||
# the terminal rickroll
|
|
||||||
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
|
|
||||||
|
|
||||||
# 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"
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
||||||
# 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
|
||||||
|
alias tos="/home/dt/thinkorswim/thinkorswim"
|
||||||
|
|
||||||
# force all kakoune windows into one session
|
# force all kakoune windows into one session
|
||||||
alias kak="/usr/bin/kak -c mysession"
|
alias kak="/usr/bin/kak -c mysession"
|
||||||
alias kaks="/usr/bin/kak -s mysession"
|
alias kaks="/usr/bin/kak -s mysession"
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
[xin_2]
|
[xin_2]
|
||||||
file=/home/dt/wallpapers/0166.jpg
|
file=/home/dt/wallpapers/0172.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|
||||||
[xin_1]
|
[xin_1]
|
||||||
file=/home/dt/wallpapers/0166.jpg
|
file=/home/dt/wallpapers/0172.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|
||||||
[xin_0]
|
[xin_0]
|
||||||
file=/home/dt/wallpapers/0166.jpg
|
file=/home/dt/wallpapers/0172.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
[geometry]
|
[geometry]
|
||||||
posx=1936
|
posx=0
|
||||||
posy=40
|
posy=0
|
||||||
sizex=1884
|
sizex=1920
|
||||||
sizey=1020
|
sizey=1080
|
||||||
|
|
||||||
[nitrogen]
|
[nitrogen]
|
||||||
view=icon
|
view=icon
|
||||||
|
|||||||
60
.zshrc
60
.zshrc
@@ -11,6 +11,18 @@ export HISTORY_IGNORE="(ls|cd|pwd|exit|sudo reboot|history|cd -|cd ..)"
|
|||||||
export EDITOR="emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
export EDITOR="emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
||||||
export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
||||||
|
|
||||||
|
### SET MANPAGER
|
||||||
|
### Uncomment only one of these!
|
||||||
|
|
||||||
|
### "bat" as manpager
|
||||||
|
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||||
|
|
||||||
|
### "vim" as manpager
|
||||||
|
# export MANPAGER='/bin/bash -c "vim -MRn -c \"set buftype=nofile showtabline=0 ft=man ts=8 nomod nolist norelativenumber nonu noma\" -c \"normal L\" -c \"nmap q :qa<CR>\"</dev/tty <(col -b)"'
|
||||||
|
|
||||||
|
### "nvim" as manpager
|
||||||
|
# export MANPAGER="nvim -c 'set ft=man' -"
|
||||||
|
|
||||||
### SET VI MODE ###
|
### SET VI MODE ###
|
||||||
# Comment this line out to enable default emacs-like bindings
|
# Comment this line out to enable default emacs-like bindings
|
||||||
bindkey -v
|
bindkey -v
|
||||||
@@ -126,18 +138,12 @@ 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"
|
||||||
|
|
||||||
# pacman and yay
|
# bat
|
||||||
alias pacsyu='sudo pacman -Syyu' # update only standard pkgs
|
# alias cat='bat'
|
||||||
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
|
# broot
|
||||||
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
alias br='broot -dhp'
|
||||||
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
alias bs='broot --sizes'
|
||||||
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"
|
|
||||||
|
|
||||||
# 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
|
||||||
@@ -146,6 +152,21 @@ alias ll='exa -l --color=always --group-directories-first' # long format
|
|||||||
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
||||||
alias l.='exa -a | egrep "^\."'
|
alias l.='exa -a | egrep "^\."'
|
||||||
|
|
||||||
|
# pacman and yay
|
||||||
|
alias pacsyu='sudo pacman -Syyu' # update only standard pkgs
|
||||||
|
alias yaysua='yay -Sua --noconfirm' # update only AUR pkgs (yay)
|
||||||
|
alias yaysyu='yay -Syu --noconfirm' # update standard pkgs and AUR pkgs (yay)
|
||||||
|
alias parsua='paru -Sua --noconfirm' # update only AUR pkgs (paru)
|
||||||
|
alias parsyu='paru -Syu --noconfirm' # update standard pkgs and AUR pkgs (paru)
|
||||||
|
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
|
||||||
|
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
||||||
|
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --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"
|
||||||
|
|
||||||
# Colorize grep output (good for log files)
|
# Colorize grep output (good for log files)
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias egrep='egrep --color=auto'
|
alias egrep='egrep --color=auto'
|
||||||
@@ -170,6 +191,9 @@ alias psmem10='ps auxf | sort -nr -k 4 | head -10'
|
|||||||
alias pscpu='ps auxf | sort -nr -k 3'
|
alias pscpu='ps auxf | sort -nr -k 3'
|
||||||
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
|
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
|
||||||
|
|
||||||
|
# Merge Xresources
|
||||||
|
alias merge='xrdb -merge ~/.Xresources'
|
||||||
|
|
||||||
# git
|
# git
|
||||||
alias addup='git add -u'
|
alias addup='git add -u'
|
||||||
alias addall='git add .'
|
alias addall='git add .'
|
||||||
@@ -180,13 +204,10 @@ alias commit='git commit -m'
|
|||||||
alias fetch='git fetch'
|
alias fetch='git fetch'
|
||||||
alias pull='git pull origin'
|
alias pull='git pull origin'
|
||||||
alias push='git push origin'
|
alias push='git push origin'
|
||||||
alias status='git status'
|
alias stat='git status' # 'status' is protected name so using 'stat' instead
|
||||||
alias tag='git tag'
|
alias tag='git tag'
|
||||||
alias newtag='git tag -a'
|
alias newtag='git tag -a'
|
||||||
|
|
||||||
# Merge Xresources
|
|
||||||
alias merge='xrdb -merge ~/.Xresources'
|
|
||||||
|
|
||||||
# get error messages from journalctl
|
# get error messages from journalctl
|
||||||
alias jctl="journalctl -p 3 -xb"
|
alias jctl="journalctl -p 3 -xb"
|
||||||
|
|
||||||
@@ -208,6 +229,7 @@ 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 "
|
||||||
|
|
||||||
# switch between shells
|
# switch between shells
|
||||||
|
# I do not recommend switching default SHELL from bash.
|
||||||
alias tobash="sudo chsh $USER -s /bin/bash && echo 'Now log out.'"
|
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 tozsh="sudo chsh $USER -s /bin/zsh && echo 'Now log out.'"
|
||||||
alias tofish="sudo chsh $USER -s /bin/fish && echo 'Now log out.'"
|
alias tofish="sudo chsh $USER -s /bin/fish && echo 'Now log out.'"
|
||||||
@@ -224,6 +246,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
|
||||||
|
alias tos="/home/dt/thinkorswim/thinkorswim"
|
||||||
|
|
||||||
|
# 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 &"
|
||||||
|
|
||||||
### 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
|
||||||
|
|||||||
Reference in New Issue
Block a user