+ Switch from Bash to Zsh
This commit is contained in:
parent
623d68320f
commit
c732fd66cc
2 changed files with 116 additions and 0 deletions
66
.config/zsh/aliases
Normal file
66
.config/zsh/aliases
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#vim
|
||||||
|
alias nano='nvim'
|
||||||
|
alias vim='nvim'
|
||||||
|
alias vi='nvim'
|
||||||
|
|
||||||
|
#curl
|
||||||
|
alias weather='curl wttr.in'
|
||||||
|
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
|
||||||
|
|
||||||
|
#install
|
||||||
|
alias pac='sudo pacman'
|
||||||
|
alias pacS='sudo pacman -S'
|
||||||
|
alias pacSy='sudo pacman -Sy'
|
||||||
|
alias pacSyu='sudo pacman -Syu'
|
||||||
|
alias pacR='sudo pacman -R'
|
||||||
|
alias aur='yay'
|
||||||
|
alias aurS='yay -S'
|
||||||
|
alias aurSy='yay -Sy'
|
||||||
|
alias aurSyu='yay -Syu'
|
||||||
|
alias aurR='yay -R'
|
||||||
|
|
||||||
|
#ripper
|
||||||
|
alias spotifyrip='spotify-ripper -u palembani@gmail.com'
|
||||||
|
alias yt='youtube-dl'
|
||||||
|
alias ytaudio='youtube-dl -x --audio-format'
|
||||||
|
alias xreload='xrdb ~/.Xresources'
|
||||||
|
|
||||||
|
#shortcuts
|
||||||
|
alias ytv='youtube-viewer'
|
||||||
|
alias gravit='~/my\ Files/Gravit/GravitDesigner.AppImage'
|
||||||
|
alias redoom='~/doom refresh'
|
||||||
|
alias rvim='sudo vim'
|
||||||
|
alias py='python'
|
||||||
|
alias ps2c='sudo sh $HOME/.scripts/ps2c'
|
||||||
|
alias cls='clear'
|
||||||
|
alias classprop='xprop WM_CLASS'
|
||||||
|
alias storagelist='lsblk -f'
|
||||||
|
alias ..='cd ..'
|
||||||
|
alias ...='cd ../..'
|
||||||
|
alias ls='exa --color=always'
|
||||||
|
alias ll='ls -alF'
|
||||||
|
alias l='ls -CF'
|
||||||
|
alias la='ls -a'
|
||||||
|
#config shortcuts
|
||||||
|
alias cfvim='vim $XDG_CONFIG_HOME/vim/vimrc'
|
||||||
|
alias cfbash='vim $HOME/.bashrc'
|
||||||
|
alias cfzsh='vim $HOME/.zshrc'
|
||||||
|
alias cfbsp='vim $XDG_CONFIG_HOME/bspwm/bspwmrc'
|
||||||
|
alias cfpoly='vim $XDG_CONFIG_HOME/polybar/config'
|
||||||
|
alias cfkeys='vim $XDG_CONFIG_HOME/sxhkd/sxhkdrc'
|
||||||
|
alias cfalias='vim $XDG_CONFIG_HOME/zsh/aliases'
|
||||||
|
#more shortcuts
|
||||||
|
alias htop='htop -t'
|
||||||
|
alias rm='rm -i'
|
||||||
|
alias mv='mv -i'
|
||||||
|
alias cp='cp -i'
|
||||||
|
|
||||||
|
#Git Aliases
|
||||||
|
alias gs='git status'
|
||||||
|
alias gaa='git add --all'
|
||||||
|
alias gcm='git commit -m'
|
||||||
|
alias gp='git push'
|
||||||
|
alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
|
||||||
|
|
50
.zshrc
Normal file
50
.zshrc
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
# If you come from bash you might have to change your $PATH.
|
||||||
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
|
#XDG
|
||||||
|
export XDG_CACHE_HOME="$HOME/.cache"
|
||||||
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
|
|
||||||
|
# MOTDs
|
||||||
|
pfetch
|
||||||
|
|
||||||
|
# Path
|
||||||
|
PATH="$HOME/.local/bin${PATH:+:${PATH}}"
|
||||||
|
|
||||||
|
# Path to your oh-my-zsh installation.
|
||||||
|
export ZSH="$XDG_DATA_HOME/oh-my-zsh"
|
||||||
|
export ZSH_CUSTOM="$ZSH"
|
||||||
|
|
||||||
|
# History in cache directory
|
||||||
|
HISTFILE=~/.cache/zsh/zsh_history
|
||||||
|
HISTSIZE=1000
|
||||||
|
SAVEHIST=1000
|
||||||
|
|
||||||
|
# Theme
|
||||||
|
ZSH_THEME="spaceship"
|
||||||
|
|
||||||
|
# Plugins
|
||||||
|
plugins=(
|
||||||
|
git
|
||||||
|
)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# Default
|
||||||
|
if [[ -n $SSH_CONNECTION ]]; then
|
||||||
|
export EDITOR='vim'
|
||||||
|
else
|
||||||
|
export EDITOR='mvim'
|
||||||
|
fi
|
||||||
|
export BROWSER='firefox'
|
||||||
|
export TERMINAL='urxvt'
|
||||||
|
|
||||||
|
#Askpass
|
||||||
|
export SUDO_ASKPASS=/usr/bin/rofi-askpass
|
||||||
|
|
||||||
|
#vim
|
||||||
|
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
|
||||||
|
|
||||||
|
[ -f ~/.config/zsh/aliases ] && source ~/.config/zsh/aliases
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue