Compare commits
6 Commits
f40feebca6
...
4d33a9e688
Author | SHA1 | Date | |
---|---|---|---|
4d33a9e688 | |||
5e4a91f283 | |||
98f7a22f8c | |||
804173ec96 | |||
a2ff6eadc0 | |||
97fd6e38d0 |
123
.zshrc
123
.zshrc
@ -77,60 +77,8 @@ export FZF_DEFAULT_OPTS='--height 40% --layout=reverse'
|
|||||||
export EIX_LIMIT_COMPACT=0
|
export EIX_LIMIT_COMPACT=0
|
||||||
export TERMINAL="st"
|
export TERMINAL="st"
|
||||||
export QT_SCALE_FACTOR=1.5
|
export QT_SCALE_FACTOR=1.5
|
||||||
export VISUAL='nvim'
|
|
||||||
export EDITOR='nvim'
|
|
||||||
alias vimc="nvim $HOME/.vimrc"
|
|
||||||
alias svm="sudo nvim /etc/portage/make.conf"
|
|
||||||
alias svr="sudo nvim /etc/portage/repos.conf"
|
|
||||||
alias svp="sudo nvim /etc/portage/package.use"
|
|
||||||
alias sva="sudo nvim /etc/portage/package.accept_keywords"
|
|
||||||
alias emerge="sudo emerge"
|
|
||||||
alias channel-check='sudo iwlist wlan0 scan | egrep -i "essid|frequency"'
|
|
||||||
alias grep="grep"
|
|
||||||
alias egrep="egrep"
|
|
||||||
alias ls="ls -h --color=auto"
|
|
||||||
alias ll='ls -lha'
|
|
||||||
alias cp='cp -v'
|
|
||||||
alias mv='mv -v'
|
|
||||||
alias myip="curl ipinfo.io/ip"
|
|
||||||
alias logi="journalctl -f"
|
|
||||||
alias pl="setxkbmap pl"
|
|
||||||
alias graphic-card="glxinfo|egrep 'OpenGL vendor|OpenGL renderer'"
|
|
||||||
alias mylaptop-components="inxi -Fxz"
|
|
||||||
alias r="ranger"
|
|
||||||
alias v="nvim"
|
|
||||||
alias feh="feh --edit --scale-down"
|
|
||||||
alias changefont="figlet"
|
|
||||||
alias gmaster="git checkout master"
|
|
||||||
alias gcommit="git commit --author='Marcin Woźniak <y0rune@aol.com>' -s"
|
|
||||||
alias gcommitw="git commit --author='Marcin Wozniak <marcin.wozniak@wundermanthompson.com>'"
|
|
||||||
alias gdel="git push origin --delete"
|
|
||||||
alias gadd="git add"
|
|
||||||
alias gpush="git push"
|
|
||||||
alias gpull="git fetch -p -q; git pull; git submodule foreach git pull origin master -q; git submodule foreach git pull origin main -q; git submodule status"
|
|
||||||
alias gpu="git fetch -p -q; git pull; git submodule foreach git pull origin master -q; git submodule foreach git pull origin main -q; git submodule status"
|
|
||||||
alias gch="git checkout"
|
|
||||||
alias gstatus="git status -s"
|
|
||||||
alias gst="git status -s"
|
|
||||||
alias gdiff="git diff | cat"
|
|
||||||
alias gnew="git checkout -b"
|
|
||||||
alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches"
|
|
||||||
alias cal="cal -3"
|
|
||||||
alias code="vscodium-bin"
|
|
||||||
alias tv="~/MEGA/tv/tv.sh"
|
|
||||||
alias newswork="newsboat --url=$HOME/.config/newsboat/urlswork"
|
|
||||||
alias vim="nvim -p"
|
|
||||||
alias denpl="trans en:pl"
|
|
||||||
alias dplen="trans pl:en"
|
|
||||||
alias notes="nvim $HOME/git/notes/index.md"
|
|
||||||
alias mpv="__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 mpv --vo=x11 --hwdec=no --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo[height<=?1080]+bestaudio/best'"
|
|
||||||
alias aria2c="aria2c --seed-time=0 --disable-ipv6 --max-upload-limit=1k"
|
|
||||||
alias lg="lazygit"
|
|
||||||
alias update-brew="brew upgrade --cask"
|
|
||||||
alias irc="ssh mikrus -t 'screen -r'"
|
|
||||||
alias rsync="rsync --progress"
|
|
||||||
|
|
||||||
# Cleaning-up
|
# Declerating the PATHs
|
||||||
unset PATH
|
unset PATH
|
||||||
export PATH=/bin:$PATH
|
export PATH=/bin:$PATH
|
||||||
export PATH=/usr/bin:$PATH
|
export PATH=/usr/bin:$PATH
|
||||||
@ -148,7 +96,6 @@ export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin
|
|||||||
# History
|
# History
|
||||||
export HISTTIMEFORMAT="%F %T "
|
export HISTTIMEFORMAT="%F %T "
|
||||||
|
|
||||||
|
|
||||||
# Export for WSL
|
# Export for WSL
|
||||||
if [[ "$(uname -sr)" =~ "Microsoft" ]]; then
|
if [[ "$(uname -sr)" =~ "Microsoft" ]]; then
|
||||||
export GOROOT=/usr/lib/go
|
export GOROOT=/usr/lib/go
|
||||||
@ -182,17 +129,82 @@ if [[ "$(uname)" == "Darwin" ]]; then
|
|||||||
export PATH="$(brew --prefix python@$PYTHONVERSION)/bin:$PATH"
|
export PATH="$(brew --prefix python@$PYTHONVERSION)/bin:$PATH"
|
||||||
alias python3='/opt/homebrew/bin/python$PYTHONVERSION'
|
alias python3='/opt/homebrew/bin/python$PYTHONVERSION'
|
||||||
alias pip3='/opt/homebrew/bin/pip$PYTHONVERSION'
|
alias pip3='/opt/homebrew/bin/pip$PYTHONVERSION'
|
||||||
|
alias python='/opt/homebrew/bin/python$PYTHONVERSION'
|
||||||
|
alias pip='/opt/homebrew/bin/pip$PYTHONVERSION'
|
||||||
|
|
||||||
alias lsblk="diskutil list"
|
alias lsblk="diskutil list"
|
||||||
alias Update="~/.config/nvim/installer.sh; brew update; brew upgrade"
|
alias Update="~/.config/nvim/installer.sh; brew update; brew upgrade"
|
||||||
alias ls="ls -Gh"
|
alias ls="ls -Gh"
|
||||||
alias mpv="mpv --no-resume-playback"
|
alias mpv="mpv --no-resume-playback"
|
||||||
alias code="open -a 'Visual Studio Code'"
|
alias code="open -a 'Visual Studio Code'"
|
||||||
|
alias xclip="pbcopy"
|
||||||
|
|
||||||
# Project
|
# Project
|
||||||
alias meraki="cd $HOME/git/ansible_collections/cisco/meraki/"
|
alias meraki="cd $HOME/git/ansible_collections/cisco/meraki/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Setting the right editor
|
||||||
|
if which nvim > /dev/null 2>&1; then
|
||||||
|
export VISUAL='nvim -u $HOME/.vimrc'
|
||||||
|
export EDITOR='nvim -u $HOME/.vimrc'
|
||||||
|
else
|
||||||
|
export VISUAL='vim -u $HOME/.vimrc-def'
|
||||||
|
export EDITOR='vim -u $HOME/.vimrc-def'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Aliases
|
||||||
|
alias vimc="$EDITOR $HOME/.vimrc"
|
||||||
|
alias svm="sudo $EDITOR /etc/portage/make.conf"
|
||||||
|
alias svr="sudo $EDITOR /etc/portage/repos.conf"
|
||||||
|
alias svp="sudo $EDITOR /etc/portage/package.use"
|
||||||
|
alias sva="sudo $EDITOR /etc/portage/package.accept_keywords"
|
||||||
|
alias emerge="sudo emerge"
|
||||||
|
alias channel-check='sudo iwlist wlan0 scan | egrep -i "essid|frequency"'
|
||||||
|
alias grep="grep"
|
||||||
|
alias egrep="egrep"
|
||||||
|
alias ls="ls -h --color=auto"
|
||||||
|
alias ll='ls -lha'
|
||||||
|
alias cp='cp -v'
|
||||||
|
alias mv='mv -v'
|
||||||
|
alias myip="curl ipinfo.io/ip"
|
||||||
|
alias logi="journalctl -f"
|
||||||
|
alias pl="setxkbmap pl"
|
||||||
|
alias graphic-card="glxinfo|egrep 'OpenGL vendor|OpenGL renderer'"
|
||||||
|
alias mylaptop-components="inxi -Fxz"
|
||||||
|
alias r="ranger"
|
||||||
|
alias v="$EDITOR -p"
|
||||||
|
alias feh="feh --edit --scale-down"
|
||||||
|
alias changefont="figlet"
|
||||||
|
alias gmaster="git checkout master"
|
||||||
|
alias gcommit="git commit --author='Marcin Woźniak <y0rune@aol.com>' -s"
|
||||||
|
alias gcommitw="git commit --author='Marcin Wozniak <marcin.wozniak@wundermanthompson.com>'"
|
||||||
|
alias gdel="git push origin --delete"
|
||||||
|
alias gadd="git add"
|
||||||
|
alias gpush="git push"
|
||||||
|
alias gpull="git fetch -p -q; git pull; git submodule foreach git pull origin master -q; git submodule foreach git pull origin main -q; git submodule status"
|
||||||
|
alias gpu="git fetch -p -q; git pull; git submodule foreach git pull origin master -q; git submodule foreach git pull origin main -q; git submodule status"
|
||||||
|
alias gch="git checkout"
|
||||||
|
alias gstatus="git status -s"
|
||||||
|
alias gst="git status -s"
|
||||||
|
alias gdiff="git diff | cat"
|
||||||
|
alias gnew="git checkout -b"
|
||||||
|
alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches"
|
||||||
|
alias cal="cal -3"
|
||||||
|
alias code="vscodium-bin"
|
||||||
|
alias tv="~/MEGA/tv/tv.sh"
|
||||||
|
alias newswork="newsboat --url=$HOME/.config/newsboat/urlswork"
|
||||||
|
alias vim="$EDITOR -p"
|
||||||
|
alias denpl="trans en:pl"
|
||||||
|
alias dplen="trans pl:en"
|
||||||
|
alias notes="$EDITOR $HOME/git/notes/index.md"
|
||||||
|
alias mpv="__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 mpv --vo=x11 --hwdec=no --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo[height<=?1080]+bestaudio/best'"
|
||||||
|
alias aria2c="aria2c --seed-time=0 --disable-ipv6 --max-upload-limit=1k"
|
||||||
|
alias lg="lazygit"
|
||||||
|
alias update-brew="brew upgrade --cask"
|
||||||
|
alias irc="ssh mikrus -t 'screen -r'"
|
||||||
|
alias rsync="rsync --progress"
|
||||||
|
|
||||||
|
|
||||||
# Resolve problem with
|
# Resolve problem with
|
||||||
# zsh: no matches found
|
# zsh: no matches found
|
||||||
setopt +o nomatch
|
setopt +o nomatch
|
||||||
@ -202,6 +214,3 @@ export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
|
|||||||
|
|
||||||
# Error with Delinea
|
# Error with Delinea
|
||||||
[ -f "/etc/ssl/certs/ca-certificates.crt" ] && export REQUESTS_CA_BUNDLE='/etc/ssl/certs/ca-certificates.crt'
|
[ -f "/etc/ssl/certs/ca-certificates.crt" ] && export REQUESTS_CA_BUNDLE='/etc/ssl/certs/ca-certificates.crt'
|
||||||
|
|
||||||
# Generated for envman. Do not edit.
|
|
||||||
[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user