This commit is contained in:
Shihaam Abdul Rahman 2023-11-12 22:10:38 +05:00
parent e77e963a98
commit 6fd9a92306
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
3 changed files with 24 additions and 1 deletions

5
bashrc
View File

@ -29,7 +29,7 @@ cdl(){ cd $(cat ~/.cache/whereami);};cdl
####### ALIASES ##########
# add features
alias nano='nano -l'
#alias nano='nano -l'
alias hdd='cd /mnt/hdd'
alias drag=ripdrag
@ -60,6 +60,9 @@ edit(){ nano $(grep $1 * -R | awk '{print $1}'|cut -f1 -d ':' | head -n1);}
catmd() { pandoc $1 | lynx -stdin;}
# replace white spaces in file name with underscores
rmspace() { for file in *; do mv -- "$file" "${file// /_}"; done;}
yq() {
podman run --rm -i -v "${PWD}":/workdir mikefarah/yq "$@"
}
###############################################################################
### Enter container

View File

@ -1 +1,20 @@
include /usr/share/nano-syntax-highlighting/*
set autoindent
set linenumbers
#set smooth
set backup
set backupdir "~/.cache/nano"
set titlecolor brightblue,black
set statuscolor brightgreen,blue
set selectedcolor brightwhite,magenta
set numbercolor yellow
set keycolor brightcyan
set functioncolor green
set nohelp
#bind ^[ ( main
#bind ^] ) main
#bind ^{ { main
#bind ^} } main

View File

@ -16,6 +16,7 @@ podman run --rm \
-v $HOME/Downloads:/root/Downloads \
-v $HOME/Pictures:/root/Pictures \
-v $HOME/Documents:/root/Documents \
-v /etc/localtime:/etc/localtime \
-v /usr/share/icons:/usr/share/icons \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /tmp/xdg-open$SOCKET_ID.socket:/tmp/xdg-open.socket \