adding new config
This commit is contained in:
@@ -7,15 +7,18 @@ ssh <host> -t tmux
|
||||
# To attach to ssh session
|
||||
ssh <host> -t tmux a
|
||||
|
||||
# To detach from tmux:
|
||||
# To detach from inside tmux:
|
||||
Ctrl-b d
|
||||
|
||||
# To restore tmux session:
|
||||
tmux attach
|
||||
|
||||
# To detach an already attached session (great if you are moving devices with different screen resolutions):
|
||||
# To attached to default session
|
||||
tmux attach -d
|
||||
|
||||
# To attach to a session
|
||||
tmux attach -d -t(session)
|
||||
|
||||
# To display session:
|
||||
tmux ls
|
||||
|
||||
@@ -59,3 +62,13 @@ Ctrl-b "
|
||||
|
||||
# To swap windows:
|
||||
Ctrl-b :swap-window -s [0-9] -t [0-9]
|
||||
|
||||
# Some tmux pane control commands:
|
||||
Ctrl-B
|
||||
# Panes (splits), Press Ctrl+B, then input the following symbol:
|
||||
# % horizontal split
|
||||
# " vertical split
|
||||
# o swap panes
|
||||
# q show pane numbers
|
||||
# x kill pane
|
||||
# space - toggle between layouts
|
||||
|
||||
@@ -5,7 +5,7 @@ include "/home/lokman/.gtkrc-2.0.mine"
|
||||
gtk-theme-name="catppuccin-mocha-blue-standard+default"
|
||||
gtk-icon-theme-name="Papirus-Dark"
|
||||
gtk-font-name="Noto Sans, 10"
|
||||
gtk-cursor-theme-name="Adwaita"
|
||||
gtk-cursor-theme-name="mcmojave-cursors"
|
||||
gtk-cursor-theme-size=24
|
||||
gtk-toolbar-style=3
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
gtk-theme-name=catppuccin-mocha-blue-standard+default
|
||||
gtk-icon-theme-name=Papirus-Dark
|
||||
gtk-font-name=Noto Sans, 10
|
||||
gtk-cursor-theme-name=Adwaita
|
||||
gtk-cursor-theme-name=mcmojave-cursors
|
||||
gtk-cursor-theme-size=24
|
||||
gtk-toolbar-style=3
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
@@ -14,7 +14,7 @@ gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintslight
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-application-prefer-dark-theme=0
|
||||
gtk-application-prefer-dark-theme=1
|
||||
gtk-decoration-layout=icon:minimize,maximize,close
|
||||
gtk-enable-animations=true
|
||||
gtk-modules=colorreload-gtk-module
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
ansible-collection-kewlfft-aur
|
||||
gocheat-bin
|
||||
arronax
|
||||
beautysh
|
||||
|
||||
@@ -2488,6 +2488,7 @@ cursor_blink_interval 0
|
||||
#:: map ctrl+alt+a send_text normal,application some command with arguments\r
|
||||
|
||||
#: Open kitty Website
|
||||
# show the config docs
|
||||
|
||||
# map shift+cmd+/ open_url https://sw.kovidgoyal.net/kitty/
|
||||
|
||||
@@ -2510,7 +2511,12 @@ cursor_blink_interval 0
|
||||
#: }}}
|
||||
|
||||
#: }}}
|
||||
# Custom keybinding
|
||||
|
||||
# map f1 launch tmux
|
||||
# map f1 launch tmux new-session -d -s SSH # creates a session without attached
|
||||
# map f2 launch sh -c 'tm'
|
||||
# map f3 launch tmux attach -t0
|
||||
|
||||
# BEGIN_KITTY_THEME
|
||||
# Catppuccin Kitty Mocha
|
||||
|
||||
@@ -127,3 +127,4 @@ audio/mp4=mpv.desktop
|
||||
audio/aac=mpv.desktop
|
||||
audio/x-ms-asx=mpv.desktop
|
||||
audio/vnd.wave=mpv.desktop
|
||||
x-scheme-handler/vuescan=vuescan-url-handler.desktop
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
enabled = false,
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-emoji",
|
||||
-- "bydlw98/cmp-env",
|
||||
-- "rcarriga/cmp-dap",
|
||||
},
|
||||
---@param opts cmp.ConfigSchema
|
||||
opts = function(_, opts)
|
||||
local has_words_before = function()
|
||||
unpack = unpack or table.unpack
|
||||
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
||||
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
|
||||
end
|
||||
|
||||
local luasnip = require("luasnip")
|
||||
local cmp = require("cmp")
|
||||
|
||||
opts.mapping = vim.tbl_extend("force", opts.mapping, {
|
||||
["<Tab>"] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
-- You could replace select_next_item() with confirm({ select = true }) to get VS Code autocompletion behavior
|
||||
cmp.select_next_item()
|
||||
-- You could replace the expand_or_jumpable() calls with expand_or_locally_jumpable()
|
||||
-- this way you will only jump inside the snippet region
|
||||
elseif luasnip.expand_or_jumpable() then
|
||||
luasnip.expand_or_jump()
|
||||
elseif has_words_before() then
|
||||
cmp.complete()
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, { "i", "s" }),
|
||||
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_prev_item()
|
||||
elseif luasnip.jumpable(-1) then
|
||||
luasnip.jump(-1)
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, { "i", "s" }),
|
||||
})
|
||||
sources = cmp.config.sources({
|
||||
{ name = "luasnip" },
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "buffer" },
|
||||
{ name = "path" },
|
||||
{ name = "emoji" },
|
||||
-- { name = "dap" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
return {
|
||||
-- fancy UI for the debugger
|
||||
{
|
||||
"rcarriga/nvim-dap-ui",
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>du", function() require("dapui").toggle({ }) end, desc = "Dap UI" },
|
||||
{ "<leader>de", function() require("dapui").eval() end, desc = "Eval", mode = {"n", "v"} },
|
||||
},
|
||||
opts = {},
|
||||
config = function(_, opts)
|
||||
local dap = require("dap")
|
||||
local dapui = require("dapui")
|
||||
dapui.setup(opts)
|
||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
||||
dapui.open({})
|
||||
end
|
||||
dap.listeners.before.event_terminated["dapui_config"] = function()
|
||||
-- dapui.close({})
|
||||
end
|
||||
dap.listeners.before.event_exited["dapui_config"] = function()
|
||||
-- dapui.close({})
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
return {
|
||||
"mfussenegger/nvim-dap",
|
||||
enabled = false,
|
||||
dependencies = {
|
||||
"nvim-neotest/nvim-nio",
|
||||
},
|
||||
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>dB", function() require("dap").set_breakpoint(vim.fn.input('Breakpoint condition: ')) end, desc = "Breakpoint Condition" },
|
||||
{ "<leader>db", function() require("dap").toggle_breakpoint() end, desc = "Toggle Breakpoint" },
|
||||
{ "<leader>dc", function() require("dap").continue() end, desc = "Continue" },
|
||||
{ "<leader>da", function() require("dap").continue({ before = get_args }) end, desc = "Run with Args" },
|
||||
{ "<leader>dC", function() require("dap").run_to_cursor() end, desc = "Run to Cursor" },
|
||||
{ "<leader>dg", function() require("dap").goto_() end, desc = "Go to line (no execute)" },
|
||||
{ "<leader>di", function() require("dap").step_into() end, desc = "Step Into" },
|
||||
{ "<leader>dj", function() require("dap").down() end, desc = "Down" },
|
||||
{ "<leader>dk", function() require("dap").up() end, desc = "Up" },
|
||||
{ "<leader>dl", function() require("dap").run_last() end, desc = "Run Last" },
|
||||
{ "<leader>do", function() require("dap").step_out() end, desc = "Step Out" },
|
||||
{ "<F3>", function() require("dap").step_over() end, desc = "Step Over" },
|
||||
{ "<leader>dO", function() require("dap").step_over() end, desc = "Step Over" },
|
||||
{ "<leader>dp", function() require("dap").pause() end, desc = "Pause" },
|
||||
{ "<leader>dr", function() require("dap").repl.toggle() end, desc = "Toggle Repl" },
|
||||
{ "<leader>ds", function() require("dap").session() end, desc = "Session" },
|
||||
{ "<leader>dx", function() require("dap").terminate() end, desc = "Terminate" },
|
||||
{ "<leader>dw", function() require("dap.ui.widgets").hover() end, desc = "Widgets" },
|
||||
--TODO: better keymap for python debug
|
||||
{"<leader>dPs", function() require('dap-python').debug_selection()end,desc = "Python Debug Selection", ft = "python", mode={"v"} },
|
||||
{ "<leader>dPd", function() require("neotest").run.run({strategy = "dap"}) end, desc = "Debug Nearest", ft = "python"},
|
||||
},
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
return {
|
||||
"kevinhwang91/nvim-hlslens",
|
||||
enabled = false,
|
||||
config = function()
|
||||
require("hlslens").setup({
|
||||
calm_down = true,
|
||||
nearest_only = false,
|
||||
nearest_float_when = "never",
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,153 +1,12 @@
|
||||
return {
|
||||
"petertriho/nvim-scrollbar",
|
||||
-- https://github.com/petertriho/nvim-scrollbar
|
||||
--TODO: Configure bar
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("scrollbar").setup({
|
||||
show = true,
|
||||
show_in_active_only = false,
|
||||
set_highlights = true,
|
||||
folds = 1000, -- handle folds, set to number to disable folds if no. of lines in buffer exceeds this
|
||||
max_lines = false, -- disables if no. of lines in buffer exceeds this
|
||||
hide_if_all_visible = false, -- Hides everything if all lines are visible
|
||||
throttle_ms = 100,
|
||||
handle = {
|
||||
text = " ",
|
||||
blend = 30, -- Integer between 0 and 100. 0 for fully opaque and 100 to full transparent. Defaults to 30.
|
||||
color = nil,
|
||||
color_nr = nil, -- cterm
|
||||
highlight = "CursorColumn",
|
||||
hide_if_all_visible = true, -- Hides handle if all lines are visible
|
||||
},
|
||||
marks = {
|
||||
Cursor = {
|
||||
text = "•",
|
||||
priority = 0,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
cterm = nil,
|
||||
color_nr = nil, -- cterm
|
||||
highlight = "Normal",
|
||||
},
|
||||
Search = {
|
||||
text = { "-", "=" },
|
||||
priority = 1,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
cterm = nil,
|
||||
color_nr = nil, -- cterm
|
||||
highlight = "Search",
|
||||
},
|
||||
Error = {
|
||||
text = { "-", "=" },
|
||||
priority = 2,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
cterm = nil,
|
||||
color_nr = nil, -- cterm
|
||||
highlight = "DiagnosticVirtualTextError",
|
||||
},
|
||||
Warn = {
|
||||
text = { "-", "=" },
|
||||
priority = 3,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
cterm = nil,
|
||||
color_nr = nil, -- cterm
|
||||
highlight = "DiagnosticVirtualTextWarn",
|
||||
},
|
||||
Info = {
|
||||
text = { "-", "=" },
|
||||
priority = 4,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
cterm = nil,
|
||||
color_nr = nil, -- cterm
|
||||
highlight = "DiagnosticVirtualTextInfo",
|
||||
},
|
||||
Hint = {
|
||||
text = { "-", "=" },
|
||||
priority = 5,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
cterm = nil,
|
||||
color_nr = nil, -- cterm
|
||||
highlight = "DiagnosticVirtualTextHint",
|
||||
},
|
||||
Misc = {
|
||||
text = { "-", "=" },
|
||||
priority = 6,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
cterm = nil,
|
||||
color_nr = nil, -- cterm
|
||||
highlight = "Normal",
|
||||
},
|
||||
GitAdd = {
|
||||
text = "┆",
|
||||
priority = 7,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
cterm = nil,
|
||||
color_nr = nil, -- cterm
|
||||
highlight = "GitSignsAdd",
|
||||
},
|
||||
GitChange = {
|
||||
text = "┆",
|
||||
priority = 7,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
cterm = nil,
|
||||
color_nr = nil, -- cterm
|
||||
highlight = "GitSignsChange",
|
||||
},
|
||||
GitDelete = {
|
||||
text = "▁",
|
||||
priority = 7,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
cterm = nil,
|
||||
color_nr = nil, -- cterm
|
||||
highlight = "GitSignsDelete",
|
||||
},
|
||||
},
|
||||
excluded_buftypes = {
|
||||
"terminal",
|
||||
},
|
||||
excluded_filetypes = {
|
||||
"cmp_docs",
|
||||
"cmp_menu",
|
||||
"noice",
|
||||
"prompt",
|
||||
"TelescopePrompt",
|
||||
},
|
||||
autocmd = {
|
||||
render = {
|
||||
"BufWinEnter",
|
||||
"TabEnter",
|
||||
"TermEnter",
|
||||
"WinEnter",
|
||||
"CmdwinLeave",
|
||||
"TextChanged",
|
||||
"VimResized",
|
||||
"WinScrolled",
|
||||
},
|
||||
clear = {
|
||||
"BufWinLeave",
|
||||
"TabLeave",
|
||||
"TermLeave",
|
||||
"WinLeave",
|
||||
},
|
||||
},
|
||||
handlers = {
|
||||
cursor = true,
|
||||
diagnostic = false,
|
||||
gitsigns = false, -- Requires gitsigns
|
||||
handle = true,
|
||||
search = false, -- Requires hlslens
|
||||
ale = false, -- Requires ALE
|
||||
},
|
||||
})
|
||||
end,
|
||||
"petertriho/nvim-scrollbar",
|
||||
dependencies = {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
},
|
||||
opts = {
|
||||
handlers = {
|
||||
gitsigns = true,
|
||||
search = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -13,7 +13,6 @@ WhitePointBlue=799
|
||||
[Input]
|
||||
Options=2
|
||||
Source=MB5100
|
||||
PDFFileName=YYYY-MM-DD-0001+.pdf
|
||||
[Input-MX350]
|
||||
Mode=1
|
||||
[Crop-MX350-DocFeeder]
|
||||
@@ -29,16 +28,15 @@ WhitePointBlue=986
|
||||
WhitePointGreen=986
|
||||
[Prefs]
|
||||
StartupTip=15
|
||||
WindowXOffset=1725
|
||||
WindowYOffset=231
|
||||
WindowXOffset=1283
|
||||
WindowYOffset=730
|
||||
WindowXSize=1268
|
||||
WindowYSize=701
|
||||
Language=3
|
||||
WindowMaximized=1
|
||||
[Output]
|
||||
Copyright=Lokman Caliskan
|
||||
LogFile=0
|
||||
PDFFileName=YYYY-MM-DD-0001+.pdf
|
||||
RawOutputWith=1
|
||||
[Filter-MX350-DocFeeder]
|
||||
Sharpen=1
|
||||
[Input-File]
|
||||
@@ -72,12 +70,12 @@ YSize=7016
|
||||
PreviewXSize=4961
|
||||
PreviewYSize=7016
|
||||
[Crop-MB5100-Flatbed]
|
||||
XCenter=5120
|
||||
YCenter=6164
|
||||
XSize=9585
|
||||
YSize=11463
|
||||
Skew=-15
|
||||
XCenter=4644
|
||||
YCenter=3192
|
||||
XSize=8404
|
||||
YSize=5900
|
||||
Skew=200
|
||||
[Color-MB5100-Flatbed]
|
||||
WhitePointRed=984
|
||||
WhitePointGreen=984
|
||||
WhitePointBlue=984
|
||||
WhitePointRed=846
|
||||
WhitePointGreen=846
|
||||
WhitePointBlue=846
|
||||
|
||||
File diff suppressed because one or more lines are too long
+201
-201
@@ -1,4 +1,4 @@
|
||||
#files: 1032 version: 5.9
|
||||
#files: 1031 version: 5.9
|
||||
|
||||
_comps=(
|
||||
'-' '_precommand'
|
||||
@@ -1903,206 +1903,206 @@ autoload -Uz _afew _android _arch-audit _archlinux-java _artisan \
|
||||
_buku _bun _bundle _busctl _bw \
|
||||
_bwrap _cap _cargo _cask _ccache \
|
||||
_cf _cheat _checkupdates _choc _chromium \
|
||||
_clang-check _clang-format _clang-tidy _cmake _code \
|
||||
_coffee _conan _concourse _console _coredumpctl \
|
||||
_cppcheck _cpu-x _curl _dad _dart \
|
||||
_dasel _delta _dget _dhcpcd _diana \
|
||||
_direnv _docpad _dolphin _downgrade _drush \
|
||||
_dust _ecdsautil _emacs _emacsclient _emulator \
|
||||
_envdir _exportfs _eza _fab _fail2ban-client \
|
||||
_fastfetch _fd _ffind _flameshot _fleetctl \
|
||||
_flutter _fvm _fwupdmgr _gas _ghc \
|
||||
_gist _git-flow _git-pulls _git-revise _git-wtf \
|
||||
_glances _glow _golang _google _gpgconf \
|
||||
_gpg-tui _grpcurl _gtk-launch _hello _hg \
|
||||
_hledger _homestead _hostnamectl _httpie _hyprctl \
|
||||
_hyprpm _ibus _img2sixel _include-what-you-use _insmod \
|
||||
_inxi _jmeter _jmeter-plugins _jonas _journalctl \
|
||||
_jrnl _kak _kdeconnect _kde-inhibit _kernel-install \
|
||||
_keyring _kitchen _kitty _knife _konsole \
|
||||
_language_codes _lftp _libinput _lilypond _localectl \
|
||||
_loginctl _lsmod _lunchy _machinectl _mc \
|
||||
_meson _middleman _mina _mix _mkcert \
|
||||
_mkinitcpio _mpv _mssh _mullvad _mussh \
|
||||
_mvn _nano _nanoc _neofetch _networkctl \
|
||||
_networkQuality _nftables _ninja _node _nvm \
|
||||
_oomctl _openssl _openvpn3 _optirun _paccache \
|
||||
_pacdiff _pacignore _paclist _paclog-pkglist _pacman \
|
||||
_pacscripts _pacsearch _pacsort _pactree _paru \
|
||||
_patchelf _patool _periscope _pgsql_utils _phing \
|
||||
_pip _pixz _pkcon _play _playerctl \
|
||||
_pm2 _poetry _port _protoc _pulseaudio \
|
||||
_pygmentize _qmk _qpdf _rails _ralio \
|
||||
_rankmirrors _redis-cli _resolvectl _rfkill _rg \
|
||||
_rkt _rmlint _rmmod _rslsync _rspec \
|
||||
_rsvm _rubocop _run0 _sbt _scala \
|
||||
_scrcpy _screencapture _scrub _sdd _sd_hosts_or_user_at_host \
|
||||
_sdkmanager _sd_machines _sd_outputmodes _sd_unit_files _setcap \
|
||||
_setup.py _sfdx _shellcheck _showoff _shtab \
|
||||
_spt _sqv _srm _stack _starship \
|
||||
_streamlink _subliminal _supervisorctl _svm _swaync \
|
||||
_swaync-client _swww _systemctl _systemd _systemd-analyze \
|
||||
_systemd-delta _systemd-inhibit _systemd-nspawn _systemd-path _systemd-run \
|
||||
_systemd-tmpfiles _task _taskwarrior-tui _teamocil _thor \
|
||||
_timedatectl _tldr _tmuxinator _tox _tsc \
|
||||
_ts-node _udevadm _udiskie _udiskie-canonical_paths _udiskie-mount \
|
||||
_udiskie-umount _udisks2 _udisksctl _ufw _updpkgsums \
|
||||
_upower _varlinkctl _virtualbox _visidata _vnstat \
|
||||
_wemux _wezterm _wg-quick _wl-copy _wlogout \
|
||||
_wl-paste _wpctl _xsel _yarn _yazi \
|
||||
_yt-dlp _zcash-cli _cdr _all_labels _all_matches \
|
||||
_alternative _approximate _arg_compile _arguments _bash_completions \
|
||||
_cache_invalid _call_function _combination _complete _complete_debug \
|
||||
_complete_help _complete_help_generic _complete_tag _comp_locale _correct \
|
||||
_correct_filename _correct_word _describe _description _dispatch \
|
||||
_expand _expand_alias _expand_word _extensions _external_pwds \
|
||||
_generic _guard _history _history_complete_word _ignored \
|
||||
_list _main_complete _match _menu _message \
|
||||
_most_recent_file _multi_parts _next_label _next_tags _normal \
|
||||
_nothing _numbers _oldlist _pick_variant _prefix \
|
||||
_read_comp _regex_arguments _regex_words _requested _retrieve_cache \
|
||||
_sep_parts _sequence _set_command _setup _store_cache \
|
||||
_sub_commands _tags _user_expand _values _wanted \
|
||||
_acpi _acpitool _alsa-utils _analyseplugin _basenc \
|
||||
_brctl _btrfs _capabilities _chattr _chcon \
|
||||
_choom _chrt _cpupower _cryptsetup _dkms \
|
||||
_e2label _ethtool _findmnt _free _fuse_arguments \
|
||||
_fusermount _fuse_values _gpasswd _htop _iconvconfig \
|
||||
_ionice _ipset _iptables _iwconfig _kpartx \
|
||||
_losetup _lsattr _lsblk _lsns _lsusb \
|
||||
_ltrace _mat _mat2 _mdadm _mii-tool \
|
||||
_modutils _mondo _networkmanager _nsenter _opkg \
|
||||
_perf _pidof _pmap _qdbus _schedtool \
|
||||
_selinux_contexts _selinux_roles _selinux_types _selinux_users _setpriv \
|
||||
_setsid _slabtop _ss _sshfs _strace \
|
||||
_sysstat _tload _tpb _tracepath _tune2fs \
|
||||
_uml _unshare _valgrind _vserver _wakeup_capable_devices \
|
||||
_wipefs _wpa_cli _a2ps _aap _abcde \
|
||||
_absolute_command_paths _ack _adb _ansible _ant \
|
||||
_antiword _apachectl _apm _arch_archives _arch_namespace \
|
||||
_arp _arping _asciidoctor _asciinema _at \
|
||||
_attr _augeas _avahi _awk _base64 \
|
||||
_basename _bash _baudrates _baz _beep \
|
||||
_bibtex _bind_addresses _bison _bittorrent _bogofilter \
|
||||
_bpf_filters _bpython _bzip2 _bzr _cabal \
|
||||
_cal _calendar _canonical_paths _cat _ccal \
|
||||
_cdcd _cdrdao _cdrecord _chkconfig _chmod \
|
||||
_chown _chroot _chsh _cksum _clay \
|
||||
_cmdambivalent _cmdstring _cmp _column _comm \
|
||||
_composer _compress _configure _cowsay _cp \
|
||||
_cpio _cplay _crontab _cscope _csplit \
|
||||
_cssh _ctags _ctags_tags _curl _cut \
|
||||
_cvs _darcs _date _date_formats _dates \
|
||||
_dbus _dconf _dd _devtodo _df \
|
||||
_dhclient _dict _dict_words _diff _diff3 \
|
||||
_diff_options _diffstat _dig _directories _dir_list \
|
||||
_django _dmesg _dmidecode _dns_types _doas \
|
||||
_domains _dos2unix _drill _dropbox _dsh \
|
||||
_dtruss _du _dvi _ecasound _ed \
|
||||
_elfdump _elinks _email_addresses _enscript _entr \
|
||||
_env _espeak _etags _fakeroot _feh \
|
||||
_fetchmail _ffmpeg _figlet _file_modes _files \
|
||||
_file_systems _find _find_net_interfaces _finger _flac \
|
||||
_flex _fmt _fold _fortune _fsh \
|
||||
_fuser _gcc _gcore _gdb _gem \
|
||||
_genisoimage _getconf _getent _getfacl _getmail \
|
||||
_getopt _ghostscript _git _global _global_tags \
|
||||
_gnu_generic _gnupod _gnutls _go _gpg \
|
||||
_gphoto2 _gprof _gradle _graphicsmagick _grep \
|
||||
_groff _groups _growisofs _gsettings _guilt \
|
||||
_gzip _have_glob_qual _head _hexdump _host \
|
||||
_hostname _hosts _iconv _id _ifconfig \
|
||||
_iftop _imagemagick _initctl _init_d _install \
|
||||
_iostat _ip _ipsec _irssi _ispell \
|
||||
_java _java_class _joe _join _jq \
|
||||
_killall _knock _kvno _last _ldconfig \
|
||||
_ldd _ld_debug _less _lha _libvirt \
|
||||
_links _list_files _lldb _ln _loadkeys \
|
||||
_locale _localedef _locales _locate _logger \
|
||||
_look _lp _ls _lsof _lua \
|
||||
_luarocks _lynx _lz4 _lzop _mail \
|
||||
_mailboxes _make _man _md5sum _mencal \
|
||||
_mh _mime_types _mkdir _mkfifo _mknod \
|
||||
_mktemp _module _monotone _moosic _mosh \
|
||||
_mount _mpc _mt _mtools _mtr \
|
||||
_mutt _mv _my_accounts _myrepos _mysqldiff \
|
||||
_mysql_utils _ncftp _netcat _net_interfaces _netstat \
|
||||
_newsgroups _nginx _ngrep _nice _nkf \
|
||||
_nl _nm _nmap _npm _nslookup \
|
||||
_numfmt _objdump _object_files _od _openstack \
|
||||
_opustools _other_accounts _pack _pandoc _paste \
|
||||
_patch _patchutils _path_commands _path_files _pax \
|
||||
_pbm _pdf _perforce _perl _perl_basepods \
|
||||
_perldoc _perl_modules _pgids _pgrep _php \
|
||||
_picocom _pids _pine _ping _pip \
|
||||
_pkgadd _pkg-config _pkginfo _pkg_instance _pkgrm \
|
||||
_pon _ports _postfix _postgresql _postscript \
|
||||
_pr _printenv _printers _process_names _prove \
|
||||
_ps _pspdf _psutils _ptx _pump \
|
||||
_pv _pwgen _pydoc _python _python_modules \
|
||||
_qemu _quilt _rake _ranlib _rar \
|
||||
_rclone _rcs _readelf _readlink _remote_files \
|
||||
_renice _ri _rlogin _rm _rmdir \
|
||||
_route _rrdtool _rsync _rubber _ruby \
|
||||
_runit _samba _sccs _scons _screen \
|
||||
_script _seafile _sed _seq _service \
|
||||
_services _setfacl _sh _shasum _showmount \
|
||||
_shred _shuf _shutdown _signals _sisu \
|
||||
_slrn _smartmontools _socket _sort _spamassassin \
|
||||
_split _sqlite _sqsh _ssh _ssh_hosts \
|
||||
_stat _stdbuf _stgit _stow _strings \
|
||||
_strip _stty _su _subversion _sudo \
|
||||
_surfraw _swaks _swanctl _swift _sys_calls \
|
||||
_sysctl _tac _tail _tar _tar_archive \
|
||||
_tardy _tcpdump _tcptraceroute _tee _telnet \
|
||||
_terminals _tex _texi _texinfo _tidy \
|
||||
_tiff _tilde_files _timeout _time_zone _tin \
|
||||
_tla _tmux _todo.sh _toilet _top \
|
||||
_topgit _totd _touch _tput _tr \
|
||||
_transmission _tree _truncate _truss _tty \
|
||||
_ttys _twidge _twisted _umountable _unace \
|
||||
_uname _unexpand _uniq _unison _units \
|
||||
_uptime _urls _user_admin _user_at_host _users \
|
||||
_users_on _vi _vim _visudo _vmstat \
|
||||
_vorbis _vpnc _w _w3m _watch \
|
||||
_wc _webbrowser _wget _whereis _who \
|
||||
_whois _wiggle _xargs _xmlsoft _xmlstarlet \
|
||||
_xmms2 _xxd _xz _yafc _yodl \
|
||||
_yp _zcat _zdump _zfs _zfs_dataset \
|
||||
_zfs_pool _zip _zsh _acroread _code \
|
||||
_dcop _eog _evince _geany _gnome-gv \
|
||||
_gqview _gv _kdeconnect _kfmclient _matlab \
|
||||
_mozilla _mplayer _mupdf _nautilus _nedit \
|
||||
_netscape _okular _pdftk _qiv _rdesktop \
|
||||
_setxkbmap _sublimetext _urxvt _vnc _x_arguments \
|
||||
_xauth _xautolock _x_borderwidth _xclip _x_color \
|
||||
_x_colormapid _x_cursor _x_display _xdvi _x_extension \
|
||||
_xfig _x_font _xft_fonts _x_geometry _xinput \
|
||||
_x_keysym _xloadimage _x_locale _x_modifier _xmodmap \
|
||||
_x_name _xournal _xpdf _xrandr _x_resource \
|
||||
_xscreensaver _x_selection_timeout _xset _xt_arguments _xterm \
|
||||
_x_title _xt_session_id _x_utils _xv _x_visual \
|
||||
_x_window _xwit _zeal _add-zle-hook-widget _add-zsh-hook \
|
||||
_alias _aliases __arguments _arrays _assign \
|
||||
_autocd _bindkey _brace_parameter _builtin _cd \
|
||||
_command _command_names _compadd _compdef _completers \
|
||||
_condition _default _delimiters _directory_stack _dirs \
|
||||
_disable _dynamic_directory_name _echotc _echoti _emulate \
|
||||
_enable _equal _exec _fc _file_descriptors \
|
||||
_first _functions _globflags _globqual_delims _globquals \
|
||||
_hash _history_modifiers _in_vared _jobs _jobs_bg \
|
||||
_jobs_builtin _jobs_fg _kill _limit _limits \
|
||||
_math _math_params _mere _module_math_func _options \
|
||||
_options_set _options_unset _parameter _parameters _precommand \
|
||||
_print _prompt _ps1234 _read _redirect \
|
||||
_run-help _sched _set _setopt _source \
|
||||
_strftime _subscript _suffix_alias_files _tcpsys _tilde \
|
||||
_trap _ttyctl _typeset _ulimit _unhash \
|
||||
_user_math_func _value _vared _vars _vcs_info \
|
||||
_vcs_info_hooks _wait _which _widgets _zargs \
|
||||
_zattr _zcalc _zcalc_line _zcompile _zed \
|
||||
_zftp _zle _zmodload _zmv _zparseopts \
|
||||
_zpty _zsh-mime-handler _zsocket _zstyle _ztodo
|
||||
_clang-check _clang-format _clang-tidy _cmake _coffee \
|
||||
_conan _concourse _console _coredumpctl _cppcheck \
|
||||
_cpu-x _curl _dad _dart _dasel \
|
||||
_delta _dget _dhcpcd _diana _direnv \
|
||||
_docpad _dolphin _downgrade _drush _dust \
|
||||
_ecdsautil _emacs _emacsclient _emulator _envdir \
|
||||
_exportfs _eza _fab _fail2ban-client _fastfetch \
|
||||
_fd _ffind _flameshot _fleetctl _flutter \
|
||||
_fvm _fwupdmgr _gas _ghc _gist \
|
||||
_git-flow _git-pulls _git-revise _git-wtf _glances \
|
||||
_glow _golang _google _gpgconf _gpg-tui \
|
||||
_grpcurl _gtk-launch _hello _hg _hledger \
|
||||
_homestead _hostnamectl _httpie _hyprctl _hyprpm \
|
||||
_ibus _img2sixel _include-what-you-use _insmod _inxi \
|
||||
_jmeter _jmeter-plugins _jonas _journalctl _jrnl \
|
||||
_kak _kdeconnect _kde-inhibit _kernel-install _keyring \
|
||||
_kitchen _kitty _knife _konsole _language_codes \
|
||||
_lftp _libinput _lilypond _localectl _loginctl \
|
||||
_lsmod _lunchy _machinectl _mc _meson \
|
||||
_middleman _mina _mix _mkcert _mkinitcpio \
|
||||
_mpv _mssh _mullvad _mussh _mvn \
|
||||
_nano _nanoc _neofetch _networkctl _networkQuality \
|
||||
_nftables _ninja _node _nvm _oomctl \
|
||||
_openssl _openvpn3 _optirun _paccache _pacdiff \
|
||||
_pacignore _paclist _paclog-pkglist _pacman _pacscripts \
|
||||
_pacsearch _pacsort _pactree _paru _patchelf \
|
||||
_patool _periscope _pgsql_utils _phing _pip \
|
||||
_pixz _pkcon _play _playerctl _pm2 \
|
||||
_poetry _port _protoc _pulseaudio _pygmentize \
|
||||
_qmk _qpdf _rails _ralio _rankmirrors \
|
||||
_redis-cli _resolvectl _rfkill _rg _rkt \
|
||||
_rmlint _rmmod _rslsync _rspec _rsvm \
|
||||
_rubocop _run0 _sbt _scala _scrcpy \
|
||||
_screencapture _scrub _sdd _sd_hosts_or_user_at_host _sdkmanager \
|
||||
_sd_machines _sd_outputmodes _sd_unit_files _setcap _setup.py \
|
||||
_sfdx _shellcheck _showoff _shtab _spt \
|
||||
_sqv _srm _stack _starship _streamlink \
|
||||
_subliminal _supervisorctl _svm _swaync _swaync-client \
|
||||
_swww _systemctl _systemd _systemd-analyze _systemd-delta \
|
||||
_systemd-inhibit _systemd-nspawn _systemd-path _systemd-run _systemd-tmpfiles \
|
||||
_task _taskwarrior-tui _teamocil _thor _timedatectl \
|
||||
_tldr _tmuxinator _tox _tsc _ts-node \
|
||||
_udevadm _udiskie _udiskie-canonical_paths _udiskie-mount _udiskie-umount \
|
||||
_udisks2 _udisksctl _ufw _updpkgsums _upower \
|
||||
_varlinkctl _virtualbox _visidata _vnstat _wemux \
|
||||
_wezterm _wg-quick _wl-copy _wlogout _wl-paste \
|
||||
_wpctl _xsel _yarn _yazi _yt-dlp \
|
||||
_zcash-cli _cdr _all_labels _all_matches _alternative \
|
||||
_approximate _arg_compile _arguments _bash_completions _cache_invalid \
|
||||
_call_function _combination _complete _complete_debug _complete_help \
|
||||
_complete_help_generic _complete_tag _comp_locale _correct _correct_filename \
|
||||
_correct_word _describe _description _dispatch _expand \
|
||||
_expand_alias _expand_word _extensions _external_pwds _generic \
|
||||
_guard _history _history_complete_word _ignored _list \
|
||||
_main_complete _match _menu _message _most_recent_file \
|
||||
_multi_parts _next_label _next_tags _normal _nothing \
|
||||
_numbers _oldlist _pick_variant _prefix _read_comp \
|
||||
_regex_arguments _regex_words _requested _retrieve_cache _sep_parts \
|
||||
_sequence _set_command _setup _store_cache _sub_commands \
|
||||
_tags _user_expand _values _wanted _acpi \
|
||||
_acpitool _alsa-utils _analyseplugin _basenc _brctl \
|
||||
_btrfs _capabilities _chattr _chcon _choom \
|
||||
_chrt _cpupower _cryptsetup _dkms _e2label \
|
||||
_ethtool _findmnt _free _fuse_arguments _fusermount \
|
||||
_fuse_values _gpasswd _htop _iconvconfig _ionice \
|
||||
_ipset _iptables _iwconfig _kpartx _losetup \
|
||||
_lsattr _lsblk _lsns _lsusb _ltrace \
|
||||
_mat _mat2 _mdadm _mii-tool _modutils \
|
||||
_mondo _networkmanager _nsenter _opkg _perf \
|
||||
_pidof _pmap _qdbus _schedtool _selinux_contexts \
|
||||
_selinux_roles _selinux_types _selinux_users _setpriv _setsid \
|
||||
_slabtop _ss _sshfs _strace _sysstat \
|
||||
_tload _tpb _tracepath _tune2fs _uml \
|
||||
_unshare _valgrind _vserver _wakeup_capable_devices _wipefs \
|
||||
_wpa_cli _a2ps _aap _abcde _absolute_command_paths \
|
||||
_ack _adb _ansible _ant _antiword \
|
||||
_apachectl _apm _arch_archives _arch_namespace _arp \
|
||||
_arping _asciidoctor _asciinema _at _attr \
|
||||
_augeas _avahi _awk _base64 _basename \
|
||||
_bash _baudrates _baz _beep _bibtex \
|
||||
_bind_addresses _bison _bittorrent _bogofilter _bpf_filters \
|
||||
_bpython _bzip2 _bzr _cabal _cal \
|
||||
_calendar _canonical_paths _cat _ccal _cdcd \
|
||||
_cdrdao _cdrecord _chkconfig _chmod _chown \
|
||||
_chroot _chsh _cksum _clay _cmdambivalent \
|
||||
_cmdstring _cmp _column _comm _composer \
|
||||
_compress _configure _cowsay _cp _cpio \
|
||||
_cplay _crontab _cscope _csplit _cssh \
|
||||
_ctags _ctags_tags _curl _cut _cvs \
|
||||
_darcs _date _date_formats _dates _dbus \
|
||||
_dconf _dd _devtodo _df _dhclient \
|
||||
_dict _dict_words _diff _diff3 _diff_options \
|
||||
_diffstat _dig _directories _dir_list _django \
|
||||
_dmesg _dmidecode _dns_types _doas _domains \
|
||||
_dos2unix _drill _dropbox _dsh _dtruss \
|
||||
_du _dvi _ecasound _ed _elfdump \
|
||||
_elinks _email_addresses _enscript _entr _env \
|
||||
_espeak _etags _fakeroot _feh _fetchmail \
|
||||
_ffmpeg _figlet _file_modes _files _file_systems \
|
||||
_find _find_net_interfaces _finger _flac _flex \
|
||||
_fmt _fold _fortune _fsh _fuser \
|
||||
_gcc _gcore _gdb _gem _genisoimage \
|
||||
_getconf _getent _getfacl _getmail _getopt \
|
||||
_ghostscript _git _global _global_tags _gnu_generic \
|
||||
_gnupod _gnutls _go _gpg _gphoto2 \
|
||||
_gprof _gradle _graphicsmagick _grep _groff \
|
||||
_groups _growisofs _gsettings _guilt _gzip \
|
||||
_have_glob_qual _head _hexdump _host _hostname \
|
||||
_hosts _iconv _id _ifconfig _iftop \
|
||||
_imagemagick _initctl _init_d _install _iostat \
|
||||
_ip _ipsec _irssi _ispell _java \
|
||||
_java_class _joe _join _jq _killall \
|
||||
_knock _kvno _last _ldconfig _ldd \
|
||||
_ld_debug _less _lha _libvirt _links \
|
||||
_list_files _lldb _ln _loadkeys _locale \
|
||||
_localedef _locales _locate _logger _look \
|
||||
_lp _ls _lsof _lua _luarocks \
|
||||
_lynx _lz4 _lzop _mail _mailboxes \
|
||||
_make _man _md5sum _mencal _mh \
|
||||
_mime_types _mkdir _mkfifo _mknod _mktemp \
|
||||
_module _monotone _moosic _mosh _mount \
|
||||
_mpc _mt _mtools _mtr _mutt \
|
||||
_mv _my_accounts _myrepos _mysqldiff _mysql_utils \
|
||||
_ncftp _netcat _net_interfaces _netstat _newsgroups \
|
||||
_nginx _ngrep _nice _nkf _nl \
|
||||
_nm _nmap _npm _nslookup _numfmt \
|
||||
_objdump _object_files _od _openstack _opustools \
|
||||
_other_accounts _pack _pandoc _paste _patch \
|
||||
_patchutils _path_commands _path_files _pax _pbm \
|
||||
_pdf _perforce _perl _perl_basepods _perldoc \
|
||||
_perl_modules _pgids _pgrep _php _picocom \
|
||||
_pids _pine _ping _pip _pkgadd \
|
||||
_pkg-config _pkginfo _pkg_instance _pkgrm _pon \
|
||||
_ports _postfix _postgresql _postscript _pr \
|
||||
_printenv _printers _process_names _prove _ps \
|
||||
_pspdf _psutils _ptx _pump _pv \
|
||||
_pwgen _pydoc _python _python_modules _qemu \
|
||||
_quilt _rake _ranlib _rar _rclone \
|
||||
_rcs _readelf _readlink _remote_files _renice \
|
||||
_ri _rlogin _rm _rmdir _route \
|
||||
_rrdtool _rsync _rubber _ruby _runit \
|
||||
_samba _sccs _scons _screen _script \
|
||||
_seafile _sed _seq _service _services \
|
||||
_setfacl _sh _shasum _showmount _shred \
|
||||
_shuf _shutdown _signals _sisu _slrn \
|
||||
_smartmontools _socket _sort _spamassassin _split \
|
||||
_sqlite _sqsh _ssh _ssh_hosts _stat \
|
||||
_stdbuf _stgit _stow _strings _strip \
|
||||
_stty _su _subversion _sudo _surfraw \
|
||||
_swaks _swanctl _swift _sys_calls _sysctl \
|
||||
_tac _tail _tar _tar_archive _tardy \
|
||||
_tcpdump _tcptraceroute _tee _telnet _terminals \
|
||||
_tex _texi _texinfo _tidy _tiff \
|
||||
_tilde_files _timeout _time_zone _tin _tla \
|
||||
_tmux _todo.sh _toilet _top _topgit \
|
||||
_totd _touch _tput _tr _transmission \
|
||||
_tree _truncate _truss _tty _ttys \
|
||||
_twidge _twisted _umountable _unace _uname \
|
||||
_unexpand _uniq _unison _units _uptime \
|
||||
_urls _user_admin _user_at_host _users _users_on \
|
||||
_vi _vim _visudo _vmstat _vorbis \
|
||||
_vpnc _w _w3m _watch _wc \
|
||||
_webbrowser _wget _whereis _who _whois \
|
||||
_wiggle _xargs _xmlsoft _xmlstarlet _xmms2 \
|
||||
_xxd _xz _yafc _yodl _yp \
|
||||
_zcat _zdump _zfs _zfs_dataset _zfs_pool \
|
||||
_zip _zsh _acroread _code _dcop \
|
||||
_eog _evince _geany _gnome-gv _gqview \
|
||||
_gv _kdeconnect _kfmclient _matlab _mozilla \
|
||||
_mplayer _mupdf _nautilus _nedit _netscape \
|
||||
_okular _pdftk _qiv _rdesktop _setxkbmap \
|
||||
_sublimetext _urxvt _vnc _x_arguments _xauth \
|
||||
_xautolock _x_borderwidth _xclip _x_color _x_colormapid \
|
||||
_x_cursor _x_display _xdvi _x_extension _xfig \
|
||||
_x_font _xft_fonts _x_geometry _xinput _x_keysym \
|
||||
_xloadimage _x_locale _x_modifier _xmodmap _x_name \
|
||||
_xournal _xpdf _xrandr _x_resource _xscreensaver \
|
||||
_x_selection_timeout _xset _xt_arguments _xterm _x_title \
|
||||
_xt_session_id _x_utils _xv _x_visual _x_window \
|
||||
_xwit _zeal _add-zle-hook-widget _add-zsh-hook _alias \
|
||||
_aliases __arguments _arrays _assign _autocd \
|
||||
_bindkey _brace_parameter _builtin _cd _command \
|
||||
_command_names _compadd _compdef _completers _condition \
|
||||
_default _delimiters _directory_stack _dirs _disable \
|
||||
_dynamic_directory_name _echotc _echoti _emulate _enable \
|
||||
_equal _exec _fc _file_descriptors _first \
|
||||
_functions _globflags _globqual_delims _globquals _hash \
|
||||
_history_modifiers _in_vared _jobs _jobs_bg _jobs_builtin \
|
||||
_jobs_fg _kill _limit _limits _math \
|
||||
_math_params _mere _module_math_func _options _options_set \
|
||||
_options_unset _parameter _parameters _precommand _print \
|
||||
_prompt _ps1234 _read _redirect _run-help \
|
||||
_sched _set _setopt _source _strftime \
|
||||
_subscript _suffix_alias_files _tcpsys _tilde _trap \
|
||||
_ttyctl _typeset _ulimit _unhash _user_math_func \
|
||||
_value _vared _vars _vcs_info _vcs_info_hooks \
|
||||
_wait _which _widgets _zargs _zattr \
|
||||
_zcalc _zcalc_line _zcompile _zed _zftp \
|
||||
_zle _zmodload _zmv _zparseopts _zpty \
|
||||
_zsh-mime-handler _zsocket _zstyle _ztodo
|
||||
autoload -Uz +X _call_program
|
||||
|
||||
typeset -gUa _comp_assocs
|
||||
|
||||
+64
-10
@@ -7,6 +7,7 @@ fastfetch -l small
|
||||
# export PATH=/home/lokman/.local/bin:$PATH
|
||||
# If you come from bash you might have to change your $PATH.
|
||||
export PATH=$HOME/.config/npm/bin:$HOME/.local/bin:/usr/local/bin:$HOME/.local/share/bin:$PATH
|
||||
export FZF_CTRL_T_COMMAND=""
|
||||
|
||||
# automatically load bash and zsh completion functions
|
||||
# Source auto completeion
|
||||
@@ -153,17 +154,19 @@ autoload -U edit-command-line && zle -N edit-command-line && bindkey -M vicmd "^
|
||||
# }
|
||||
|
||||
#
|
||||
#cheat(){
|
||||
#cheat --tag personal | awk '{print $1}' | fzf --preview "cheat {1}" --preview-window=right,70% | xargs cheat
|
||||
#}
|
||||
cheatf(){
|
||||
cheat --tag personal | awk '{print $1}' | fzf --preview "cheat {1}" --preview-window=right,70% | xargs cheat
|
||||
}
|
||||
#
|
||||
|
||||
#alias for cht.sh
|
||||
######### alias for cht.sh
|
||||
cht () {
|
||||
curl "cheat.sh/$1"
|
||||
}
|
||||
########
|
||||
|
||||
#lazydocker remote
|
||||
|
||||
######## lazydocker remote
|
||||
dockertui () {
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: lazydocker <hostname_or_ip>"
|
||||
@@ -172,11 +175,59 @@ dockertui () {
|
||||
|
||||
DOCKER_HOST=ssh://$1 lazydocker
|
||||
}
|
||||
############
|
||||
|
||||
# lazydocker () {
|
||||
# "DOCKER_HOST=ssh://$1 lazydocker"
|
||||
############ TMUX Session manager
|
||||
# tm - create new tmux session, or switch to existing one. Works from within tmux too. (@bag-man)
|
||||
# `tm` will allow you to select your tmux session via fzf.
|
||||
# `tm irc` will attach to the irc session (if it exists), else it will create it.
|
||||
|
||||
tm() {
|
||||
[[ -n "$TMUX" ]] && change="switch-client" || change="attach-session"
|
||||
if [ $1 ]; then
|
||||
tmux $change -t "$1" 2>/dev/null || (tmux new-session -d -s $1 && tmux $change -t "$1"); return
|
||||
fi
|
||||
session=$(tmux list-sessions -F "#{session_name}" 2>/dev/null | fzf --exit-0) && tmux $change -t "$session" || echo "No sessions found."
|
||||
}
|
||||
|
||||
# detach from tmux
|
||||
tmd() {
|
||||
if [ -n "$TMUX" ]; then
|
||||
tmux detach
|
||||
echo "Detached from tmux session."
|
||||
else
|
||||
echo "You are not inside a tmux session."
|
||||
fi
|
||||
}
|
||||
|
||||
###### alternviv to "tm irc"
|
||||
# tmc() {
|
||||
# local session="$1"
|
||||
# if [ -z "$session" ]; then
|
||||
# read "session?New session name: "
|
||||
# fi
|
||||
#
|
||||
# if [ -n "$session" ]; then
|
||||
# tmux new-session -s "$session"
|
||||
# else
|
||||
# echo "No session name entered."
|
||||
# fi
|
||||
# }
|
||||
tmk() {
|
||||
if tmux list-sessions 2>/dev/null | grep -q .; then
|
||||
read "confirm?Are you sure you want to kill ALL tmux sessions? (y/N): "
|
||||
if [[ "$confirm" =~ ^[Yy]$ ]]; then
|
||||
tmux list-sessions -F "#{session_name}" | xargs -n1 tmux kill-session -t
|
||||
echo "All tmux sessions killed."
|
||||
else
|
||||
echo "Cancelled."
|
||||
fi
|
||||
else
|
||||
echo "No tmux sessions to kill."
|
||||
fi
|
||||
}
|
||||
|
||||
#################
|
||||
|
||||
# alternviv example to run tldr with glow
|
||||
# tldr() {
|
||||
@@ -227,7 +278,10 @@ dockertui () {
|
||||
#
|
||||
#ifs=$sAVEIFS
|
||||
|
||||
|
||||
# zsh_keybinding
|
||||
# Disable CTRL_T
|
||||
export FZF_CTRL_T_COMMAND=""
|
||||
bindkey "^A" beginning-of-line
|
||||
bindkey "^B" backward-char
|
||||
bindkey "^D" delete-char-or-list
|
||||
@@ -247,7 +301,7 @@ bindkey "^Q" push-line
|
||||
bindkey "^R" fzf-history-widget
|
||||
#bindkey '^R' history-incremental-pattern-search-backward #without fzf
|
||||
bindkey "^S" history-incremental-search-forward
|
||||
## bindkey "^T" fzf-file-widget standrd for fzf-file-widget
|
||||
# bindkey "^T" fzf-file-widget standrd for fzf-file-widget
|
||||
bindkey "^H" fzf-file-widget
|
||||
bindkey "^U" kill-whole-line
|
||||
bindkey '^v' edit-command-line
|
||||
@@ -314,7 +368,7 @@ bindkey "^[[H" beginning-of-line
|
||||
bindkey "^[P" history-search-backward
|
||||
bindkey "^[Q" push-line
|
||||
bindkey "^[S" spell-word
|
||||
bindkey "^[T" transpose-words
|
||||
# bindkey "^[T" transpose-words
|
||||
bindkey "^[U" up-case-word
|
||||
bindkey "^[W" copy-region-as-kill
|
||||
bindkey "^[[1;5C" forward-word
|
||||
@@ -342,7 +396,7 @@ bindkey "^[n" history-search-forward
|
||||
bindkey "^[p" history-search-backward
|
||||
bindkey "^[q" push-line
|
||||
bindkey "^[s" spell-word
|
||||
bindkey "^[t" transpose-words
|
||||
# bindkey "^[t" transpose-words
|
||||
bindkey "^[u" up-case-word
|
||||
bindkey "^[w" kill-region
|
||||
bindkey "^[x" execute-named-cmd
|
||||
|
||||
Reference in New Issue
Block a user