1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- # Set PS1 and path
- PS1="$(echo '\033[01;34m$(pwd | sed "s,^$HOME,~,") \033[00m$') "
- # PATH=$PATH:/home/c/scripts
- # History
- HISTFILE="$HOME/.mksh_history"
- HISTSIZE=5000
- export VISUAL="nvim"
- export EDITOR="$VISUAL"
- set -o vi
- # Program aliases and functions
- alias wttr='curl wttr.in/Uzhgorod'
- alias xip='curl ifconfig.co; curl ifconfig.co/country'
- alias ls='ls --color=auto'
- alias grep='grep --color=auto'
- alias v='nvim'
- alias xi='sudo xbps-install'
- alias xq='xbps-query'
- alias xr='sudo xbps-remove'
- alias yv='pipe-viewer --api=auto'
- alias cp='cp -v'
- alias mv='mv -v'
- alias rm='rm -iv'
- alias v='nvim'
- alias L='ls -la'
- alias nnn='nnn -e'
- alias cl='clear'
- function ytm() {
- youtube-dl -x --audio-format=mp3 $1
- }
- function cdf () {
- cd "$(find . -type d | fzf)"
- }
- function vif () {
- vim "$(find . -type f | fzf)"
- }
- # Re-run last command as root
- alias s!!='sudo $(fc -r -l -n -1)'
- # Hide sxiv bottom bar
- alias sxiv='sxiv -b'
- # Quick dirs
- alias gm='cd ~/music; ls;'
- alias gmc='cd ~/music/classicalmisc; ls;'
- alias gme='cd ~/music/electronicmisc; ls;'
- alias gi='cd ~/images; ls;'
- alias gd='cd ~/downloads; ls;'
- alias ge='cd ~/projects/ecosim/src; ls;'
|