aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasfehico <clyhtsuriva@gmail.com>2020-08-16 20:36:25 +0200
committerMasfehico <clyhtsuriva@gmail.com>2020-08-16 20:36:25 +0200
commit9016ff7bfff6a1205c5ff9b09edbfe46596ecfe1 (patch)
treebe5ed64d54e0b0b7c99d6ddf8af9a100dff38ee8
parente7fe4b4330b6c4c7a993b1ca93ae466a65170bec (diff)
Update of bashrc and aliasrc
I moved all of my aliases from bashrc to aliasrc and fixed aliasrc which lacked the alias command due to careless recent changes.
-rw-r--r--TMV/.bashrc15
-rw-r--r--TMV/.config/aliasrc20
-rw-r--r--TMV/.config/inputrc19
-rw-r--r--TMV/.config/mpv/mpv.conf1
4 files changed, 38 insertions, 17 deletions
diff --git a/TMV/.bashrc b/TMV/.bashrc
index a687b1b..7503f93 100644
--- a/TMV/.bashrc
+++ b/TMV/.bashrc
@@ -8,24 +8,9 @@ export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 0)\]\t \[$(tput s
[ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc"
###PERSONAL EDITS
-alias cat='bat'
-alias bat_pow='sudo upower -i /org/freedesktop/UPower/devices/battery_BAT0'
-alias la='ls -A'
-alias l='ls'
-alias ll='ls -l'
-alias display='sxiv'
-alias xbacklight='sudo xbacklight'
export WINDOWS='/mnt/windows'
export PATH=$PATH:/home/mas/py/
-alias nox='user_nox.py'
-alias incendio='user_incendio.py'
-alias imperio='sudo user_imperio.py'
export TERMINAL='xterm'
-alias ipconfig='curl ipconfig.io'
-alias cp='cp -v'
-alias mv='mv -v'
-alias mkdir='mkdir -pv'
-alias rmac='rmac.py'
export BAT_THEME="Dracula"
# append to the history instead of overwriting (good for multiple connections)
diff --git a/TMV/.config/aliasrc b/TMV/.config/aliasrc
index d829289..1a29907 100644
--- a/TMV/.config/aliasrc
+++ b/TMV/.config/aliasrc
@@ -1,5 +1,6 @@
#!/bin/sh
-mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \
+
+alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \
xi="sudo xbps-install" \
xr="sudo xbps-remove" \
xq="xbps-query" \
@@ -7,6 +8,21 @@ mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" \
ls="ls -hN --color=auto --group-directories-first" \
grep="grep --color=auto" \
diff="diff --color=auto" \
- ffmpeg="ffmpeg -hide_banner"
+ ffmpeg="ffmpeg -hide_banner" \
+ cat='bat' \
+ bat_pow='sudo upower -i /org/freedesktop/UPower/devices/battery_BAT0' \
+ la='ls -A' \
+ l='ls' \
+ ll='ls -l' \
+ display='sxiv' \
+ xbacklight='sudo xbacklight' \
+ nox='user_nox.py' \
+ incendio='user_incendio.py' \
+ imperio='sudo user_imperio.py' \
+ ipconfig='curl ipconfig.io' \
+ cp='cp -v' \
+ mv='mv -v' \
+ mkdir='mkdir -pv' \
+ rmac='rmac.py'
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present.
diff --git a/TMV/.config/inputrc b/TMV/.config/inputrc
new file mode 100644
index 0000000..f9b94dd
--- /dev/null
+++ b/TMV/.config/inputrc
@@ -0,0 +1,19 @@
+$include /etc/inputrc
+set editing-mode vi
+$if mode=vi
+
+set show-mode-in-prompt on
+set vi-ins-mode-string \1\e[6 q\2
+set vi-cmd-mode-string \1\e[2 q\2
+
+set keymap vi-command
+# these are for vi-command mode
+Control-l: clear-screen
+Control-a: beginning-of-line
+
+set keymap vi-insert
+# these are for vi-insert mode
+Control-l: clear-screen
+Control-a: beginning-of-line
+
+$endif
diff --git a/TMV/.config/mpv/mpv.conf b/TMV/.config/mpv/mpv.conf
new file mode 100644
index 0000000..ff66aed
--- /dev/null
+++ b/TMV/.config/mpv/mpv.conf
@@ -0,0 +1 @@
+save-position-on-quit