updates
This commit is contained in:
parent
835b649354
commit
cffd865ae1
60
.alias
60
.alias
@ -12,8 +12,6 @@
|
|||||||
# https://gist.github.com/rroblak/8137276
|
# https://gist.github.com/rroblak/8137276
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
alias vi="vim" #Insure vim
|
alias vi="vim" #Insure vim
|
||||||
tmux_alias() {
|
tmux_alias() {
|
||||||
if [[ $# -eq 0 ]]; then
|
if [[ $# -eq 0 ]]; then
|
||||||
@ -28,16 +26,9 @@ alias grep="grep -n --color=auto" #grep
|
|||||||
alias egrep='egrep --color=auto'
|
alias egrep='egrep --color=auto'
|
||||||
alias fgrep='fgrep --color=auto'
|
alias fgrep='fgrep --color=auto'
|
||||||
alias ls="ls --color=auto" #ls
|
alias ls="ls --color=auto" #ls
|
||||||
#ZFS Related #zfs, and zpool both set to NOPASSWD via sudoers file
|
|
||||||
alias zfs="sudo zfs"
|
|
||||||
alias zpool="sudo zpool"
|
|
||||||
alias scrub="sudo zpool scrub" #preforms scrub
|
|
||||||
#Mingw
|
|
||||||
alias winmake="/usr/bin/i686-w64-mingw32-gcc"
|
|
||||||
alias winmake64="/usr/bin/x86_64-w64-mingw32-gcc"
|
|
||||||
|
|
||||||
#VimLess
|
#VimLess
|
||||||
alias less="/usr/share/vim/vim80/macros/less.sh"
|
alias less="/usr/share/vim/vim91/macros/less.sh"
|
||||||
|
|
||||||
if [ -e "/usr/bin/apt-get" ] ; then # Apt-based distros (Debian, Ubuntu, etc.)
|
if [ -e "/usr/bin/apt-get" ] ; then # Apt-based distros (Debian, Ubuntu, etc.)
|
||||||
aptget="/usr/bin/apt-get" # I currently do not use any apt-based distros
|
aptget="/usr/bin/apt-get" # I currently do not use any apt-based distros
|
||||||
@ -48,11 +39,6 @@ if [ -e "/usr/bin/apt-get" ] ; then # Apt-based distros (Debian, Ubuntu, etc.)
|
|||||||
alias Syu="$sudoaptget update"
|
alias Syu="$sudoaptget update"
|
||||||
alias Ss="$aptcache search"
|
alias Ss="$aptcache search"
|
||||||
alias Si="$aptcache show"
|
alias Si="$aptcache show"
|
||||||
# alias pacinstalled="$aptcache policy"
|
|
||||||
# alias paca="$dpkg --get-selections"
|
|
||||||
# alias pacfiles="$dpkg -L"
|
|
||||||
#elif [ -e "/usr/bin/pacman" -a "/usr/bin/cower" ] ; then
|
|
||||||
# alias XxX="echo 'pacman + cower'"
|
|
||||||
elif [ -e "/usr/bin/yay" ] ; then
|
elif [ -e "/usr/bin/yay" ] ; then
|
||||||
yay="/usr/bin/yay"
|
yay="/usr/bin/yay"
|
||||||
sudoyay="sudo $yay"
|
sudoyay="sudo $yay"
|
||||||
@ -73,56 +59,12 @@ elif [ -e "/usr/bin/pacman" ] ; then # Arch Linux
|
|||||||
alias Ss="$pacman -Ss"
|
alias Ss="$pacman -Ss"
|
||||||
alias Si="$pacman -Si"
|
alias Si="$pacman -Si"
|
||||||
alias Q="$pacman -Q"
|
alias Q="$pacman -Q"
|
||||||
# alias paclo="$pacman -Qdt"
|
|
||||||
# alias pacdnc="$sudopacman -Scc"
|
|
||||||
# alias pacfiles="$pacman -Ql"
|
|
||||||
# alias pacexpl="$pacman -D --asexp"
|
|
||||||
# alias pacimpl="$pacman -D --asdep"
|
|
||||||
elif [ -e "/usr/bin/yum" ] ; then # RPM-based distros
|
|
||||||
yum="/usr/bin/yum"
|
|
||||||
sudoyum="sudo $yum"
|
|
||||||
repoquery="/usr/bin/repoquery"
|
|
||||||
alias paci="$sudoyum install"
|
|
||||||
alias pacu="$sudoyum update"
|
|
||||||
alias pacr="$sudoyum remove"
|
|
||||||
alias pacs="$yum search"
|
|
||||||
alias pacfiles="$repoquery -lq --installed"
|
|
||||||
alias pacwhoownsit="$yum whatprovides"
|
|
||||||
alias pacinfo="$yum info"
|
|
||||||
alias paclfc="$yum -qc"
|
|
||||||
alias paccheckforupdates="$sudoyum list updates"
|
|
||||||
#elif [ -e "/usr/local/bin/brew" ] ; then # homebrew
|
|
||||||
# brew="/usr/local/bin/brew"
|
|
||||||
# alias paci="$brew install"
|
|
||||||
# alias pacu="$brew update"
|
|
||||||
# alias pacup="$brew upgrade"
|
|
||||||
# alias pacs="$brew search"
|
|
||||||
# alias pacr="$brew uninstall"
|
|
||||||
elif [ -e "/usr/bin/zypper" ] ; then
|
|
||||||
zypper="/usr/bin/zypper"
|
|
||||||
suzyp="sudo $zypper"
|
|
||||||
alias Syu="$suzyp refresh && $suzyp update"
|
|
||||||
alias Ss="$zypper se"
|
|
||||||
alias S="$suzyp in"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Cygwin
|
## Cygwin
|
||||||
# quickly get to my owncloud dir
|
# quickly get to my owncloud dir
|
||||||
alias cdoc="cd /cygdrive/c/Users/Nicholas/ownCloud"
|
alias cdoc="cd /cygdrive/c/Users/Nicholas/ownCloud"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#AUR Related
|
|
||||||
## Looking at incorperating this into above P-man section
|
|
||||||
##Needs to be moved to arch specific zsh / only sourced if cower is installed
|
|
||||||
alias aSyu="cd ~/aur && echo $PWD && cower -uvddf --color" #AUR Update
|
|
||||||
alias aSs="cd ~/aur && cower -s --color" #Search AUR
|
|
||||||
alias aS="cd ~/aur && cower -dd --color" #Download PKGBUILD and depends
|
|
||||||
|
|
||||||
|
|
||||||
alias dot="git --git-dir=$HOME/.dot/ --work-tree=$HOME"
|
alias dot="git --git-dir=$HOME/.dot/ --work-tree=$HOME"
|
||||||
|
|
||||||
##Convenience
|
##Convenience
|
||||||
|
@ -49,7 +49,7 @@ set-option -g status-position bottom
|
|||||||
# First line: Center (Window List)
|
# First line: Center (Window List)
|
||||||
set-option -g status-format[0] '#[align=centre]#{W:#{E:window-status-format} ,#{E:window-status-current-format} }'
|
set-option -g status-format[0] '#[align=centre]#{W:#{E:window-status-format} ,#{E:window-status-current-format} }'
|
||||||
# Second line: Center (Time/Date, ACPI, CPU/Mem, Hostname)
|
# Second line: Center (Time/Date, ACPI, CPU/Mem, Hostname)
|
||||||
set-option -g status-format[1] "#[align=centre][#[fg=red]Pending Updates: #(checkupdates | wc -l || echo "N/A")] #[fg=cyan][%H:%M %d-%b-%y] #[fg=yellow][#(acpi -b | awk -F', ' '{print $2, $3}')] #[fg=green,bg=default,bright][#(tmux-mem-cpu-load)] #[fg=blue][#h]"
|
set-option -g status-format[1] "#[align=centre]#[fg=red][Pending Updates: #(checkupdates | wc -l || echo "N/A")] #[fg=cyan][%H:%M %d-%b-%y] #[fg=yellow][#(acpi -b | awk -F', ' '{print $2, $3}')] #[fg=green,bg=default,bright][#(tmux-mem-cpu-load)] #[fg=blue][#h]"
|
||||||
|
|
||||||
# Ensure window list is properly justified
|
# Ensure window list is properly justified
|
||||||
# set-option -g status-justify centre # Changed to centre
|
# set-option -g status-justify centre # Changed to centre
|
||||||
@ -77,6 +77,7 @@ bind -n F10 select-window -t 10
|
|||||||
#start programs
|
#start programs
|
||||||
new -s mysession -n "sys-mon" glances
|
new -s mysession -n "sys-mon" glances
|
||||||
neww -n "Log" "journalctl -f"
|
neww -n "Log" "journalctl -f"
|
||||||
|
#neww -n "ARA Server" "source ~/Repos/homelab/.venv/bin/activate && ara-manage runserver"
|
||||||
neww
|
neww
|
||||||
#neww -n "Music" ncmpcpp
|
#neww -n "Music" ncmpcpp
|
||||||
#neww -n "Deluge" deluge-console
|
#neww -n "Deluge" deluge-console
|
||||||
|
Loading…
Reference in New Issue
Block a user